From 3e2bbe0e0671129f76fd4e3776ba9ac91fe8a9b9 Mon Sep 17 00:00:00 2001 From: Sean Rand Date: Thu, 11 May 2017 10:23:33 +0200 Subject: [PATCH] Also parse global pacman.conf IgnoreGroup Checks the global pacman.conf for an IgnoreGroup directive and uses pacman to add all packages that are in these ignored groups to the ignoredpkgs array. --- pacaur | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pacaur b/pacaur index 75ed250d..498cbb65 100755 --- a/pacaur +++ b/pacaur @@ -1600,6 +1600,8 @@ CleanCache() { GetIgnoredPkgs() { # global ignoredpkgs ignoredpkgs+=($(grep '^IgnorePkg' '/etc/pacman.conf' | awk -F '=' '{print $NF}' | tr -d "'\"")) + local ignoredgrps=$(grep '^IgnoreGroup' '/etc/pacman.conf' | awk -F '=' '{print $NF}') + [[ -n $ignoredgrps ]] && ignoredpkgs+=($($pacmanbin -Qq --groups $ignoredgrps 2>/dev/null | tr '\n' ' ')) [[ -e "$HOME/.config/cower/config" ]] && ignoredpkgs+=($(grep '^IgnorePkg' "$HOME/.config/cower/config" | awk -F '=' '{print $NF}' | tr -d "'\"")) ignoredpkgs=(${ignoredpkgs[@]//,/ }) }