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