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:
parent
75c80caebc
commit
566dc23357
@ -328,7 +328,7 @@ done
|
|||||||
|
|
||||||
if (( ! ${#candidates[*]} )); then
|
if (( ! ${#candidates[*]} )); then
|
||||||
msg 'no candidate packages found for pruning'
|
msg 'no candidate packages found for pruning'
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# grab this prior to signature scavenging
|
# grab this prior to signature scavenging
|
||||||
|
Loading…
Reference in New Issue
Block a user