We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1aa5090 + deea596 commit 7b91162Copy full SHA for 7b91162
1 file changed
bagit.py
@@ -564,7 +564,8 @@ def _load_manifests(self):
564
else:
565
search = "manifest-"
566
alg = os.path.basename(manifest_filename).replace(search, "").replace(".txt", "")
567
- self.algorithms.append(alg)
+ if alg not in self.algorithms:
568
+ self.algorithms.append(alg)
569
570
with open_text_file(manifest_filename, 'r', encoding=self.encoding) as manifest_file:
571
if manifest_file.encoding.startswith('UTF'):
0 commit comments