mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Support entering package name during askCleanEdit
This commit is contained in:
parent
0aae012eb5
commit
ac571d314a
1 changed files with 6 additions and 4 deletions
10
install.go
10
install.go
|
@ -387,12 +387,14 @@ func cleanEditNumberMenu(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg, installed
|
|||
continue
|
||||
}
|
||||
|
||||
if cIsInclude && cInclude.get(len(pkgs)-i) {
|
||||
if cIsInclude && (cInclude.get(len(pkgs)-i) || cOtherInclude.get(pkg.PackageBase)) {
|
||||
toClean = append(toClean, pkg)
|
||||
continue
|
||||
}
|
||||
|
||||
if !cIsInclude && !cExclude.get(len(pkgs)-i) {
|
||||
if !cIsInclude && (!cExclude.get(len(pkgs)-i) && !cOtherExclude.get(pkg.PackageBase)) {
|
||||
toClean = append(toClean, pkg)
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -436,11 +438,11 @@ func cleanEditNumberMenu(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg, installed
|
|||
continue
|
||||
}
|
||||
|
||||
if eIsInclude && eInclude.get(len(pkgs)-i) {
|
||||
if eIsInclude && (eInclude.get(len(pkgs)-i) || eOtherInclude.get(pkg.PackageBase)) {
|
||||
toEdit = append(toEdit, pkg)
|
||||
}
|
||||
|
||||
if !eIsInclude && !eExclude.get(len(pkgs)-i) {
|
||||
if !eIsInclude && (!eExclude.get(len(pkgs)-i) && !eOtherExclude.get(pkg.PackageBase)) {
|
||||
toEdit = append(toEdit, pkg)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue