mirror of
https://github.com/Jguer/yay.git
synced 2025-10-09 00:07:14 -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 = " ->"
|
const smallArrow = " ->"
|
||||||
|
|
||||||
func (warnings *aurWarnings) print() {
|
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 {
|
if len(warnings.Missing) > 0 {
|
||||||
fmt.Print(bold(yellow(smallArrow)) + " Missing AUR Packages:")
|
fmt.Print(bold(yellow(smallArrow)) + " Missing AUR Packages:")
|
||||||
for _, name := range warnings.Missing {
|
for _, name := range warnings.Missing {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user