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 committed 2018-05-07 23:28:22 +01:00
1 parent 58f23bfe9a
commit c29a80d7f7
1 file changed
+1 -1
+1 -1
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 {