-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Description
When a bag has a tag manifest file created using an algorithm other than md5, such as the following bag:
bag-info.txt
bagit.txt
data
manifest-sha1.txt
tagmanifest-sha1.txt
Updating bag info results in an invalid bag:
>>> import bagit
>>> bag = bagit.Bag('/Users/twan/edeposit/edeposit/apps/signiant/tests/SR1-4444_20140611200739')
>>> bag.is_valid()
True
>>> bag.info['External-Identifier']='xyz'
>>> bag.save()
>>> bag.is_valid()
False
The problem looks like it assumes the tag manifest file always uses md5.
# Update tag-manifest for changes to manifest & bag-info files
_make_tagmanifest_file('tagmanifest-md5.txt', self.path)
Metadata
Metadata
Assignees
Labels
No labels