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>2017-11-27 12:11:11 +0100
committerErich Eckner <git@eckner.net>2017-11-27 13:49:59 +0100
commit29ee45885b97d60c3b98ca11f511be33b5b9ce8b (patch)
treec28761717704d32510ead3eb3681e646b96e2047
parentfe2fc11bb3c5b275ac011061b736e19cf56adec9 (diff)
bin/common-functions: broken packages (which thus cannot be marked as tested) won't block other packages after $max_package_age_broken_testing days
-rwxr-xr-xbin/common-functions6
-rwxr-xr-xconf/default.conf3
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/common-functions b/bin/common-functions
index b133373..394720b 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -1142,6 +1142,12 @@ print_list_of_archaic_packages() {
find "${work_dir}/package-states" -mindepth 1 -maxdepth 1 -name '*.testing' -mtime "+${max_package_age_testing}" \
-exec head -n1 {} \; | \
"${base_dir}/bin/modify-package-state" -n --tested /dev/stdin
+ # packages remaining longer than $max_package_age_broken_testing days in testing (w/o being tested!) will be considered outdated
+ # and no longer block other packages from being moved
+ find "${work_dir}/package-states" -mindepth 1 -maxdepth 1 -name '*.testing' -mtime "+${max_package_age_broken_testing}" -printf '%f\n' \
+ sed '
+ s|\.testing$||
+ '
;;
'build-list')
while read -r pkg rev mod_rev repo; do
diff --git a/conf/default.conf b/conf/default.conf
index de14704..4260921 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -50,6 +50,9 @@ fi
# block other packages anymore
max_package_age_build_list=7
max_package_age_staging=2
+max_package_age_broken_testing=14
+# after how many days will a package in testing be automatically marked as
+# tested (if there is no open bug against it)
max_package_age_testing=7
# to access the master mirror via rsync