Skip to content

Commit

Permalink
fixed writing of tag manifests again...
Browse files Browse the repository at this point in the history
  • Loading branch information
jscancella committed Mar 25, 2016
1 parent cea1309 commit 2ebd42f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void write(Bag bag, Path outputDir) throws IOException, NoSuchAlgo
writeAdditionalTagPayloadFiles(bag.getTagManifests(), bagitDir, bag.getRootDir());
Set<Manifest> updatedTagManifests = updateTagManifests(bag, outputDir);
bag.setTagManifests(updatedTagManifests);
writeTagManifests(updatedTagManifests, bagitDir, bag.getRootDir(), bag.getFileEncoding());
writeTagManifests(updatedTagManifests, bagitDir, outputDir, bag.getFileEncoding());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public void testWriteTagManifests() throws IOException{
File tagManifest = new File(outputDir, "tagmanifest-md5.txt");

assertFalse(tagManifest.exists());
BagWriter.writeTagManifests(tagManifests, Paths.get(outputDir.toURI()), Paths.get(outputDir.toURI()), StandardCharsets.UTF_8.name());
BagWriter.writeTagManifests(tagManifests, Paths.get(outputDir.toURI()), Paths.get("/foo/bar/ham"), StandardCharsets.UTF_8.name());
assertTrue(tagManifest.exists());
}

Expand Down

0 comments on commit 2ebd42f

Please sign in to comment.