mirror of
https://github.com/Jguer/yay.git
synced 2025-12-10 00:07:23 -05:00
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:
parent
4eca2be3c1
commit
dc0765918e
6
clean.go
6
clean.go
@ -138,7 +138,11 @@ func cleanAUR(keepInstalled, keepCurrent, removeAll bool) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, pkg := range remotePackages {
|
for _, pkg := range remotePackages {
|
||||||
installedBases.set(pkg.Base())
|
if pkg.Base() != "" {
|
||||||
|
installedBases.set(pkg.Base())
|
||||||
|
} else {
|
||||||
|
installedBases.set(pkg.Name())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user