From 566dc233570c58a833da06233d3e6279b89df1e1 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 29 Oct 2014 09:16:00 -0400 Subject: 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 Signed-off-by: Allan McRae --- contrib/paccache.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/paccache.sh.in b/contrib/paccache.sh.in index 2133e34f..6a68d4de 100644 --- a/contrib/paccache.sh.in +++ b/contrib/paccache.sh.in @@ -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 -- cgit v1.2.3-70-g09d2