mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
only create bzip file if needed. #415
This commit is contained in:
+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