mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-10-31 11:01:48 +00:00
Replace an instance of GetPackage with GetPackageInfo
This commit is contained in:
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user