From 891c464a15c6c80013142e5b254876e1776a764e Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sat, 7 Jan 2023 16:43:58 +0000 Subject: Rename old-style obsoletion conversion threshold for clarity --- calm/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calm/package.py b/calm/package.py index 4538b8d..84958d7 100755 --- a/calm/package.py +++ b/calm/package.py @@ -571,12 +571,12 @@ def sort_key(k): # generate a record to add an obsoletes: header to the replacement package. # -OBSOLETE_AGE_THRESHOLD_YEARS = 20 +OBSOLETE_CONVERT_THRESHOLD_YEARS = 20 def upgrade_oldstyle_obsoletes(packages): missing_obsolete = {} - certain_age = time.time() - (OBSOLETE_AGE_THRESHOLD_YEARS * 365.25 * 24 * 60 * 60) + certain_age = time.time() - (OBSOLETE_CONVERT_THRESHOLD_YEARS * 365.25 * 24 * 60 * 60) logging.debug("cut-off date for _obsolete package to be considered for conversion is %s" % (time.strftime("%F %T %Z", time.localtime(certain_age)))) for p in sorted(packages): -- cgit v1.2.3