Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/interpret-mail
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-30 09:37:52 +0100
committerErich Eckner <git@eckner.net>2017-10-30 09:37:52 +0100
commit92333c45b0a5fdf4894a8cf706c2066070ccb28b (patch)
treeee4b6c4211945e32670574cd03dac8f922c6d80e /bin/interpret-mail
parentbf1a871ccd92586bdb989558433846651e8a434d (diff)
bin/interpret-mail: be quiet if nothing was done without error
Diffstat (limited to 'bin/interpret-mail')
-rwxr-xr-xbin/interpret-mail12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index ef19d4a..b754e59 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -181,7 +181,9 @@ sed -n "$(
if [ -s "${tmp_dir}/block" ]; then
if run_and_log_on_error "${base_dir}/bin/block-package" "${tmp_dir}/block"; then
- log 'Successfully blocked %s packages.\n' "$(wc -l < "${tmp_dir}/block")"
+ if [ -s "${tmp_dir}/block" ]; then
+ log 'Successfully blocked %s packages.\n' "$(wc -l < "${tmp_dir}/block")"
+ fi
else
log 'There was an error while blocking the packages - ignoring this message.\n'
fi
@@ -198,12 +200,16 @@ if [ -s "${tmp_dir}/stabilize" ]; then
while read -r sf; do
mv "${sf}" "${sf%.testing}.tested"
done
- log 'Successfully stabilized %s packages.\n' "$(wc -l < "${tmp_dir}/stabilized")"
+ if [ -s "${tmp_dir}/stabilized" ]; then
+ log 'Successfully stabilized %s packages.\n' "$(wc -l < "${tmp_dir}/stabilized")"
+ fi
fi
if [ -s "${tmp_dir}/unblock" ]; then
if run_and_log_on_error "${base_dir}/bin/block-package" -u "${tmp_dir}/unblock"; then
- log 'Successfully unblocked %s packages.\n' "$(wc -l < "${tmp_dir}/unblock")"
+ if [ -s "${tmp_dir}/unblock" ]; then
+ log 'Successfully unblocked %s packages.\n' "$(wc -l < "${tmp_dir}/unblock")"
+ fi
else
log 'There was an error while unblocking the packages - ignoring this message.\n'
fi