summaryrefslogtreecommitdiff
path: root/bin/interpret-mail
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-11 10:30:26 +0200
committerErich Eckner <git@eckner.net>2018-06-11 10:30:26 +0200
commitde9728267ea993ead851e4ed1cb69b7474daf0df (patch)
tree267dd7162d476cb6c9d6e09ab7db8653269e120f /bin/interpret-mail
parent3ce7fc368578514d28b6d89461daf9fb62138b57 (diff)
downloadbuilder-de9728267ea993ead851e4ed1cb69b7474daf0df.tar.xz
bin/interpret-mail: reorder tasks alphabetically
Diffstat (limited to 'bin/interpret-mail')
-rwxr-xr-xbin/interpret-mail36
1 files changed, 18 insertions, 18 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index e2031cb..4a290d8 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -263,22 +263,14 @@ if [ -s "${tmp_dir}/block" ]; then
fi
fi
-if [ -s "${tmp_dir}/stabilize" ]; then
+if [ -s "${tmp_dir}/copy-to-build-support" ]; then
sed -i '
/\.pkg\.tar\.xz$/!s/$/.pkg.tar.xz/
- ' "${tmp_dir}/stabilize"
- if run_and_log_on_error 'stabilize' "${base_dir}/bin/modify-package-state" --wait --tested "${tmp_dir}/stabilize"; then
- log 1 'stabilize' "$(wc -l < "${tmp_dir}/stabilize")"
- else
- log 0 'stabilize' 0
- fi
-fi
-
-if [ -s "${tmp_dir}/unblock" ]; then
- if run_and_log_on_error 'unblock' "${base_dir}/bin/modify-package-state" --wait --unblock "${tmp_dir}/unblock"; then
- log 1 'unblock' "$(wc -l < "${tmp_dir}/unblock")"
+ ' "${tmp_dir}/copy-to-build-support"
+ if run_and_log_on_error 'copy-to-build-support' "${base_dir}/bin/copy-to-build-support" --wait "${tmp_dir}/copy-to-build-support"; then
+ log 1 'copy-to-build-support' "$(wc -l < "${tmp_dir}/copy-to-build-support")"
else
- log 0 'unblock' 0
+ log 0 'copy-to-build-support' 0
fi
fi
@@ -296,13 +288,21 @@ if [ -s "${tmp_dir}/schedule" ]; then
log 1 'schedule' "$(wc -l < "${tmp_dir}/schedule")"
fi
-if [ -s "${tmp_dir}/copy-to-build-support" ]; then
+if [ -s "${tmp_dir}/stabilize" ]; then
sed -i '
/\.pkg\.tar\.xz$/!s/$/.pkg.tar.xz/
- ' "${tmp_dir}/copy-to-build-support"
- if run_and_log_on_error 'copy-to-build-support' "${base_dir}/bin/copy-to-build-support" --wait "${tmp_dir}/copy-to-build-support"; then
- log 1 'copy-to-build-support' "$(wc -l < "${tmp_dir}/copy-to-build-support")"
+ ' "${tmp_dir}/stabilize"
+ if run_and_log_on_error 'stabilize' "${base_dir}/bin/modify-package-state" --wait --tested "${tmp_dir}/stabilize"; then
+ log 1 'stabilize' "$(wc -l < "${tmp_dir}/stabilize")"
else
- log 0 'copy-to-build-support' 0
+ log 0 'stabilize' 0
+ fi
+fi
+
+if [ -s "${tmp_dir}/unblock" ]; then
+ if run_and_log_on_error 'unblock' "${base_dir}/bin/modify-package-state" --wait --unblock "${tmp_dir}/unblock"; then
+ log 1 'unblock' "$(wc -l < "${tmp_dir}/unblock")"
+ else
+ log 0 'unblock' 0
fi
fi