From 4c8ea425567ea60311d81e2a165ccf03d768710d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 16 Nov 2017 12:54:33 +0100 Subject: bin/common-functions: extract configuration about archaic pacakages into conf/default.conf --- bin/common-functions | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/common-functions') 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$|| ' -- cgit v1.2.3-54-g00ecf