Replace an instance of GetPackage with GetPackageInfo

This commit is contained in:
2026-02-04 14:50:25 +02:00
parent ee80640153
commit e19d64bf04
+3 -3
View File
@@ -205,11 +205,11 @@ func (operation *BPMOperation) Cleanup(cleanupMakeDepends bool) error {
}
installedPackages := make([]*PackageInfo, len(installedPackageNames))
for i, value := range installedPackageNames {
bpmpkg := GetPackage(value, operation.RootDir)
if bpmpkg == nil {
pkgInfo := GetPackageInfo(value, operation.RootDir)
if pkgInfo == nil {
return errors.New("could not find installed package (" + value + ")")
}
installedPackages[i] = bpmpkg.PkgInfo
installedPackages[i] = pkgInfo
}
// Get packages to remove