mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
only create bzip file if needed. #415
This commit is contained in:
1 parent
34ea7e8d61
commit
fcd4429370
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ func (file *indexFile) Finalize(signer utils.Signer) error {
|
||||
}
|
||||
|
||||
if file.compressable {
|
||||
err = utils.CompressFile(file.tempFile)
|
||||
err = utils.CompressFile(file.tempFile, file.onlyGzip)
|
||||
if err != nil {
|
||||
file.tempFile.Close()
|
||||
return fmt.Errorf("unable to compress index file: %s", err)
|
||||
|
||||
Reference in new issue
Block a user