summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-01-11 09:57:54 +0100
committerAllan McRae <allan@archlinux.org>2015-01-11 09:57:54 +0100
commit77ca6e40622cea463c601566a85b40ebaea69598 (patch)
tree24825f45703eff502a1efb0b07767fa433d53df3 /contrib
parent95da285f5670a56faf3bac0d999a6ba6d7153fab (diff)
parente8d757b6ba9ca545266c43279cfef1a48971c013 (diff)
downloadpacman-77ca6e40622cea463c601566a85b40ebaea69598.tar.gz
pacman-77ca6e40622cea463c601566a85b40ebaea69598.tar.xz
Merge branch 'maint'
Diffstat (limited to 'contrib')
-rw-r--r--contrib/paccache.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/paccache.sh.in b/contrib/paccache.sh.in
index 6a68d4de..1690583e 100644
--- a/contrib/paccache.sh.in
+++ b/contrib/paccache.sh.in
@@ -256,6 +256,8 @@ while :; do
delete=1 ;;
-u|--uninstalled)
IFS=$'\n' read -r -d '' -a ign < <(pacman -Qq)
+ # pacman -Qq may exit with an error, thus making ign an empty array
+ (( ${#ign[@]} )) || die 'failed to retrieve the list of installed packages'
blacklist+=("${ign[@]}")
unset ign ;;
-V|--version)