diff options
author | Erich Eckner <git@eckner.net> | 2018-03-07 20:01:15 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-07 20:01:15 +0100 |
commit | b61c5f236ced1841b84c7d24feedad500b685509 (patch) | |
tree | a0f707d4b3ff9772f66542081815805667cba616 /bin/get-package-updates | |
parent | a13bfbacf27d09f7c8ea6b4b559b0980ee8957b9 (diff) | |
download | builder-b61c5f236ced1841b84c7d24feedad500b685509.tar.xz |
bin/get-package-updates: remove broken, blocked and locked marker files of build assignments which get deleted
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-x | bin/get-package-updates | 3 |
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. |