Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2023-01-07 19:43:58 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-01-07 19:45:07 +0300
commit891c464a15c6c80013142e5b254876e1776a764e (patch)
treed500c92104f7285e2caabae2f2eff6788cbd85f0
parentf4efac3d1d0e03bfc44a090dfad61d154fbb97d4 (diff)
Rename old-style obsoletion conversion threshold for clarity
-rwxr-xr-xcalm/package.py4
1 files 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):