Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-22 14:24:53 +0200
committerErich Eckner <git@eckner.net>2018-06-22 14:24:53 +0200
commitc47b7b71893edb7528b0e94da476e790b338a440 (patch)
tree017d30d463162ec2ca8264f1a784d32b90c8c728
parent11ae14214ab1c62a5b17a3753ebc3775b082741a (diff)
bin/interpret-mail: can now delete packages
-rwxr-xr-xbin/interpret-mail10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index 4890e4c..9c9c7dc 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -5,8 +5,6 @@
# shellcheck source=../lib/load-configuration
. "${0%/*}/../lib/load-configuration"
-# TODO: enable email interface to delete packages
-
# shellcheck disable=SC2016
if [ $# -ne 0 ]; then
>&2 echo ''
@@ -275,6 +273,14 @@ if [ -s "${tmp_dir}/copy-to-build-support" ]; then
fi
fi
+if [ -s "${tmp_dir}/delete" ]; then
+ if run_and_log_on_error 'delete' "${base_dir}/bin/delete-packages" --wait; then
+ log 1 'delete' 1
+ else
+ log 0 'delete' 0
+ fi
+fi
+
if [ -s "${tmp_dir}/prioritize" ]; then
if run_and_log_on_error 'prioritize' "${base_dir}/bin/prioritize-build-list" --wait "${tmp_dir}/prioritize"; then
log 1 'prioritize' "$(cat "${tmp_dir}/prioritize")"