1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-10-31 15:45:03 -04:00

Exit with 0/SUCCESS if there are no packages to remove

Previously the lack of candidate packages was considered an error
and return 1/FAILURE but really this isn't an issue. Also, for
systemd (and others) this flagged the instance as having failed
for no good reason.

Signed-off-by: Eric Schultz <eric@schultzter.ca>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eric Schultz 2014-10-29 09:16:00 -04:00 committed by Allan McRae
parent 75c80caebc
commit 566dc23357

View File

@ -328,7 +328,7 @@ done
if (( ! ${#candidates[*]} )); then
msg 'no candidate packages found for pruning'
exit 1
exit 0
fi
# grab this prior to signature scavenging