Skip to content

Commit

Permalink
Allow packages up to Long.MAX_VALUE size. fixes #958
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Apr 1, 2021
1 parent 4de6e18 commit 4d95f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beast/util/PackageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public static Map<String, String> installPackages(Map<Package, PackageVersion> p
// grab file from URL
String zipFile = dirName + "/" + thisPkg.getName() + ".zip";
FileOutputStream fos = new FileOutputStream(zipFile);
fos.getChannel().transferFrom(rbc, 0, 1 << 26);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);

// unzip archive
doUnzip(zipFile, dirName);
Expand Down

0 comments on commit 4d95f00

Please sign in to comment.