summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorEric Schultz <eric@schultzter.ca>2014-10-29 14:16:00 +0100
committerAllan McRae <allan@archlinux.org>2014-11-04 11:10:29 +0100
commit566dc233570c58a833da06233d3e6279b89df1e1 (patch)
treea449c6be5009d9f330839d881c35dc8e6ba940e0 /contrib
parent75c80caebc8b5b6e3630af68b786c649c450fc95 (diff)
downloadpacman-566dc233570c58a833da06233d3e6279b89df1e1.tar.gz
pacman-566dc233570c58a833da06233d3e6279b89df1e1.tar.xz
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>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/paccache.sh.in2
1 files changed, 1 insertions, 1 deletions
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