summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-14 06:38:15 +0100
committerErich Eckner <git@eckner.net>2018-03-14 06:38:15 +0100
commit329bf724368aed075f28002cf2f1d40d8f325de8 (patch)
treea49651621ad046e48b1a68566cd1b04da4dd4f70
parentfad367e19d2adb6662a5543645e77190e85e94e9 (diff)
downloadbuilder-329bf724368aed075f28002cf2f1d40d8f325de8.tar.xz
bin/get-package-updates: remove old locked and blocked marker of _updated_ packages, too
-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 b48660d..081f457 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -317,6 +317,9 @@ done | \
if [ "${mode}" = 'A' ] || [ "${mode}" = 'M' ]; then
# new or modified PKGBUILD
sed -i "/^$(str_to_regex "${package}") /d" "${work_dir}/build-list.new"
+ find "${work_dir}/package-states" -regextype grep \
+ -regex ".*/$(str_to_regex "${package}")\(\.[0-9a-f]\{40\}\)\{2\}\.[^.]\+\.\(blocked\|broken\)" \
+ -delete
# shellcheck disable=SC2154
echo "${package} ${git_revision} ${new_repo_revisions__archlinux32} ${repository}" >> \
"${work_dir}/build-list.new"