pacaur icon indicating copy to clipboard operation
pacaur copied to clipboard

Feature suggestion: make wildcards in IgnorePkg work the same way as they do for pacman.

Open gruenfron opened this issue 5 years ago • 0 comments

I use pacaur over pacman ever since and only annoyance so far for me was the fact that wildcards in IgnorePkg do not really work as expected.

E.g. I had virtualbox* ignored for a decent time which worked for the standard repositories but not for the AUR part. Also setting e.g. microchip-mplab* doesn't work at all.

So here is my proposal to fix that, it works for me and might be worth to be adopted after testing/reviewing it:

--- a/pacaur
+++ b/pacaur
@@ -206,12 +206,13 @@
 
     checkaurpkgsAver=($(GetJson "$json" "Version"))
     checkaurpkgsQver=($(expac -Q '%v' "${checkaurpkgs[@]}"))
+    ignoredpkgspattern=$(echo ${ignoredpkgs[@]} | sed 's/ /\|/g')
     for i in "${!checkaurpkgs[@]}"; do
         [[ -n "$(grep -E "\-(cvs|svn|git|hg|bzr|darcs|daily.*|nightly.*)$" 

Any thoughts?

gruenfron avatar May 05 '20 08:05 gruenfron