mirror of
https://github.com/Jguer/yay.git
synced 2025-10-06 00:05:37 -04:00
Merge pull request #756 from Jguer/fix-#752
Don't show missing packages if they are ignored. Closes #752
This commit is contained in:
commit
a19151504d
9
print.go
9
print.go
@ -19,6 +19,15 @@ const arrow = "==>"
|
||||
const smallArrow = " ->"
|
||||
|
||||
func (warnings *aurWarnings) print() {
|
||||
for _, ignored := range pacmanConf.IgnorePkg {
|
||||
for i, name := range warnings.Missing {
|
||||
if ignored == name {
|
||||
warnings.Missing[i] = warnings.Missing[len(warnings.Missing)-1]
|
||||
warnings.Missing = warnings.Missing[:len(warnings.Missing)-1]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(warnings.Missing) > 0 {
|
||||
fmt.Print(bold(yellow(smallArrow)) + " Missing AUR Packages:")
|
||||
for _, name := range warnings.Missing {
|
||||
|
Loading…
x
Reference in New Issue
Block a user