Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-07 20:01:15 +0100
committerErich Eckner <git@eckner.net>2018-03-07 20:01:15 +0100
commitb61c5f236ced1841b84c7d24feedad500b685509 (patch)
treea0f707d4b3ff9772f66542081815805667cba616 /bin
parenta13bfbacf27d09f7c8ea6b4b559b0980ee8957b9 (diff)
bin/get-package-updates: remove broken, blocked and locked marker files of build assignments which get deleted
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index a95bd94..1e0502f 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -105,6 +105,9 @@ delete_package() {
echo "$1" >> \
"${work_dir}/deletion-list.new"
sed -i "/^$(str_to_regex "${1}") /d" "${work_dir}/build-list.new"
+ find "${work_dir}/package-states" -maxdepth 1 -mindepth 1 -regextype grep \
+ -regex '.*/'"$(str_to_regex "${1}")"'\(\.[^.]\+\)\{3\}\.\(blocked\|locked\)' \
+ -delete
# TODO: Once we want to rely on the database for test_exclusion, we
# need to run the command below unconditionally, but with some
# changes, so we can easily revert.