forked from rmarquis/pacaur
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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.*)$" <<< ${checkaurpkgs[$i]})" ]] && checkaurpkgsAver[$i]=$"latest"
done
for i in "${!checkaurpkgs[@]}"; do
unset isignored
- if [[ " ${ignoredpkgs[@]} " =~ " ${checkaurpkgs[$i]} " ]]; then
+ if [[ " ${checkaurpkgs[$i]} " =~ ${ignoredpkgspattern} ]]; then
isignored=true
elif [[ -n "${ignoredgrps[@]}" ]]; then
unset checkaurpkgsAgrp checkaurpkgsQgrpAny thoughts?
Metadata
Metadata
Assignees
Labels
No labels