mirror of
https://github.com/mudler/luet.git
synced 2025-09-20 18:51:23 +00:00
Annotate package runtime definition when reclaiming
This was an issue as we were copying the buildspec instead
This commit is contained in:
@@ -222,7 +222,11 @@ func (l *LuetInstaller) Reclaim(s *System) error {
|
||||
FILES:
|
||||
for _, f := range artefact.GetFiles() {
|
||||
if helpers.Exists(filepath.Join(s.Target, f)) {
|
||||
toMerge = append(toMerge, ArtifactMatch{Artifact: artefact, Package: artefact.GetCompileSpec().GetPackage()})
|
||||
p, err := repo.GetTree().GetDatabase().FindPackage(artefact.GetCompileSpec().GetPackage())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
toMerge = append(toMerge, ArtifactMatch{Artifact: artefact, Package: p})
|
||||
break FILES
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user