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-16 12:54:33 +0100
committerErich Eckner <git@eckner.net>2017-11-16 12:54:33 +0100
commit4c8ea425567ea60311d81e2a165ccf03d768710d (patch)
treefa366a77c4113b6f74d42454ec20e99402d3a245
parent2952e1298dd8c73c5b2442dc309eaec450d04b7d (diff)
bin/common-functions: extract configuration about archaic pacakages into conf/default.conf
-rwxr-xr-xbin/common-functions12
-rwxr-xr-xconf/default.conf7
2 files changed, 13 insertions, 6 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 1dcd328..8df8470 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -1137,8 +1137,8 @@ print_list_of_archaic_packages() {
for source in "$@"; do
case "${source}" in
'testing')
- # packages remaining longer than 7 days in testing
- find "${work_dir}/package-states" -mindepth 1 -maxdepth 1 -name '*.testing' -mtime +7 \
+ # packages remaining longer than $max_package_age_testing days in testing will be marked tested if no bug for them exists on FS32
+ 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
;;
@@ -1157,8 +1157,8 @@ print_list_of_archaic_packages() {
if [ "${mod_commit_date}" -gt "${commit_date}" ]; then
commit_date="${mod_commit_date}"
fi
- # packages remaining longer than 7 days on the build list
- if [ "$((commit_date + 24*60*60*7))" -lt "$(date '+%s')" ]; then
+ # packages remaining longer than $max_package_age_build_list days on the build list
+ if [ "$((commit_date + 24*60*60*max_package_age_build_list))" -lt "$(date '+%s')" ]; then
printf '%s %s %s %s\n' \
"${pkg}" \
"${rev}" \
@@ -1169,8 +1169,8 @@ print_list_of_archaic_packages() {
"${work_dir}/build-list"
;;
'staging')
- # packages remaining longer than 2 days in staging
- find "${work_dir}/package-states" -mindepth 1 -maxdepth 1 -name '*.done' -mtime +2 -printf '%f\n' | \
+ # packages remaining longer than $max_package_age_staging days in staging
+ find "${work_dir}/package-states" -mindepth 1 -maxdepth 1 -name '*.done' -mtime "+${max_package_age_staging}" -printf '%f\n' | \
sed '
s|\.done$||
'
diff --git a/conf/default.conf b/conf/default.conf
index a31c41b..68efd5f 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -45,6 +45,13 @@ if [ -s "${base_dir}/conf/admin-gpg-keys" ]; then
)
fi
+# How long should packages in the pipeline be considered "fresh" (in days)?
+# If a package surpasses this limit, it will be considered unimportant and won't
+# block other packages anymore
+max_package_age_build_list=7
+max_package_age_staging=2
+max_package_age_testing=7
+
# to access the master mirror via rsync
master_mirror_rsync_command='rsync --password-file=/home/slave/rsync.password'
master_mirror_rsync_directory='rsync://buildmaster@mirror.archlinux32.org/packages32'