[pacman-dev] [PATCH] Exit with 0/SUCCESS if there are no packages to remove

Eric Schultz eric at schultzter.ca
Wed Oct 29 13:16:00 UTC 2014


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 at schultzter.ca>
---
 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 71aee23..b3b553d 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
-- 
2.1.2


More information about the pacman-dev mailing list