Fix -Sc sometimes cleaning split packages

If a split package was installed and there was no package that matched
the name of the package base Yay would remove it even though there could
be other packages installed under that base but with a different name.

Now only clean a package if there are no installed packages under the
packagebase.
This commit is contained in:
morganamilo 2018-05-07 23:28:22 +01:00
parent 58f23bfe9a
commit c29a80d7f7
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

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