summaryrefslogtreecommitdiff
path: root/bin/common-functions
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 /bin/common-functions
parent2952e1298dd8c73c5b2442dc309eaec450d04b7d (diff)
downloadbuilder-4c8ea425567ea60311d81e2a165ccf03d768710d.tar.xz
bin/common-functions: extract configuration about archaic pacakages into conf/default.conf
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions12
1 files changed, 6 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$||
'