Implement c29a80 properly

It seems the pkgbase is null for installed packages that are not part of
a split package. It was priviously assumed that if a package was not
part of a split package, pkgbase == pkgname would always be true.

Instead try to use pkgbase and if it does not exist fall back to
pkgname.
This commit is contained in:
morganamilo 2018-05-08 00:43:49 +01:00
parent 4eca2be3c1
commit dc0765918e
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

View File

@ -138,7 +138,11 @@ func cleanAUR(keepInstalled, keepCurrent, removeAll bool) error {
}
for _, pkg := range remotePackages {
installedBases.set(pkg.Base())
if pkg.Base() != "" {
installedBases.set(pkg.Base())
} else {
installedBases.set(pkg.Name())
}
}
for _, file := range files {