mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
paccache: exit in case of pacman error when -u flag is used
Fixes https://bugs.archlinux.org/task/43286 Signed-off-by: Dario Giovannetti <dariogiova@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
fb9db2df5d
commit
e8d757b6ba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user