From c29a80d7f776dbb52bfd3f9081c8da3d94770204 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Mon, 7 May 2018 23:28:22 +0100 Subject: [PATCH] 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. --- clean.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clean.go b/clean.go index a9ecf9c7..a2722c34 100644 --- a/clean.go +++ b/clean.go @@ -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 {