Skip to content
This repository has been archived by the owner on May 31, 2018. It is now read-only.

Also parse global pacman.conf IgnoreGroup #690

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pacaur
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]//,/ })
}
Expand Down