In both the spit and unsplit operations, it appears that manifest mismatches are always reported:
python bag-split.py split /home/mark/Downloads/bagsplittest/marksbag
Verifying bag marksbag_2... success.
Verifying bag marksbag_1... success.
Verifying bag marksbag_0... success.
Verifying original bag integrity... success.
Original manifest does NOT appear consistent with the split manifests! Diff:
set([])
set([])
Creating metadata bag: marksbag_metadata
Found file: manifest-md5.txt
Found file: bag-info.txt
Found file: data
Found file: bagit.txt
Found file: tagmanifest-md5.txt
and
python bag-split.py unsplit /home/mark/Downloads/bagsplittest/marksbag_split/
Validating bag marksbag_2... success.
Validating bag marksbag_1... success.
Validating bag marksbag_0... success.
Copying payload from marksbag_0...
Copying payload from marksbag_1...
Copying payload from marksbag_2...
New manifest does NOT appear consistent with the split manifests!
Traceback (most recent call last):
File "bag-split.py", line 344, in <module>
unsplit(bag_path, args.output_dir, args.no_verify)
File "bag-split.py", line 237, in unsplit
raise RuntimeError("merged bag manifest inconsistent with split " \
RuntimeError: merged bag manifest inconsistent with split manifests
(I'll open a separate issue for the RuntimeError).
The code that compares the manifests lives around line 130.
In both the spit and unsplit operations, it appears that manifest mismatches are always reported:
and
(I'll open a separate issue for the RuntimeError).
The code that compares the manifests lives around line 130.