Enhance output

This commit is contained in:
Ettore Di Giacinto 2019-12-30 16:33:57 +01:00
parent 3d5b723668
commit c193e4d320
No known key found for this signature in database
GPG Key ID: 1ADA699B145A2D1C

View File

@ -262,6 +262,8 @@ func (l *LuetInstaller) Install(p []pkg.Package, s *System) error {
func (l *LuetInstaller) installPackage(a ArtifactMatch, s *System) error {
Info("Installing", a.Package.GetName())
artifact, err := a.Repository.Client().DownloadArtifact(a.Artifact)
defer os.Remove(artifact.GetPath())
@ -272,7 +274,7 @@ func (l *LuetInstaller) installPackage(a ArtifactMatch, s *System) error {
files, err := artifact.FileList()
if err != nil {
return errors.Wrap(err, "Could not open package archive")
return errors.Wrap(err, "Could not get file list")
}
err = artifact.Unpack(s.Target, true)