mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-09-16 02:26:12 +00:00
Replace an instance of GetPackage with GetPackageInfo
This commit is contained in:
@@ -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