index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-10-30 09:37:52 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-30 09:37:52 +0100 |
commit | 92333c45b0a5fdf4894a8cf706c2066070ccb28b (patch) | |
tree | ee4b6c4211945e32670574cd03dac8f922c6d80e /bin | |
parent | bf1a871ccd92586bdb989558433846651e8a434d (diff) |
-rwxr-xr-x | bin/interpret-mail | 12 |
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 |