mirror of
https://github.com/mudler/luet.git
synced 2025-09-04 16:50:50 +00:00
@@ -226,6 +226,7 @@ func (a *PackageArtifact) Compress(src string, concurrency int) error {
|
|||||||
w.Close()
|
w.Close()
|
||||||
os.RemoveAll(a.Path) // Remove original
|
os.RemoveAll(a.Path) // Remove original
|
||||||
a.CompressedPath = gzipfile
|
a.CompressedPath = gzipfile
|
||||||
|
return nil
|
||||||
//a.Path = gzipfile
|
//a.Path = gzipfile
|
||||||
}
|
}
|
||||||
return errors.New("Compression type must be supplied")
|
return errors.New("Compression type must be supplied")
|
||||||
@@ -267,6 +268,7 @@ func (a *PackageArtifact) Unpack(dst string, keepPerms bool) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
|
||||||
}
|
}
|
||||||
return errors.New("Compression type must be supplied")
|
return errors.New("Compression type must be supplied")
|
||||||
|
Reference in New Issue
Block a user