Merge "Revert "Close unfinished archive entries on error""
This commit is contained in:
commit
17dc02a579
|
@ -93,12 +93,9 @@ public void putEntry(ArchiveOutputStream out,
|
|||
}
|
||||
entry.setSize(loader.getSize());
|
||||
out.putArchiveEntry(entry);
|
||||
try {
|
||||
loader.copyTo(out);
|
||||
} finally {
|
||||
out.closeArchiveEntry();
|
||||
}
|
||||
}
|
||||
|
||||
public Iterable<String> suffixes() {
|
||||
return SUFFIXES;
|
||||
|
|
|
@ -82,12 +82,9 @@ public void putEntry(ArchiveOutputStream out,
|
|||
}
|
||||
entry.setSize(loader.getSize());
|
||||
out.putArchiveEntry(entry);
|
||||
try {
|
||||
loader.copyTo(out);
|
||||
} finally {
|
||||
out.closeArchiveEntry();
|
||||
}
|
||||
}
|
||||
|
||||
public Iterable<String> suffixes() {
|
||||
return SUFFIXES;
|
||||
|
|
Loading…
Reference in New Issue