mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-09-16 10:36: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))
|
installedPackages := make([]*PackageInfo, len(installedPackageNames))
|
||||||
for i, value := range installedPackageNames {
|
for i, value := range installedPackageNames {
|
||||||
bpmpkg := GetPackage(value, operation.RootDir)
|
pkgInfo := GetPackageInfo(value, operation.RootDir)
|
||||||
if bpmpkg == nil {
|
if pkgInfo == nil {
|
||||||
return errors.New("could not find installed package (" + value + ")")
|
return errors.New("could not find installed package (" + value + ")")
|
||||||
}
|
}
|
||||||
installedPackages[i] = bpmpkg.PkgInfo
|
installedPackages[i] = pkgInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get packages to remove
|
// Get packages to remove
|
||||||
|
|||||||
Reference in New Issue
Block a user