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-10-14 23:34:10 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-10-15 18:14:34 +0300
commitcda9f0512545bf5374cbed851e58140537a38f39 (patch)
tree659a0464fd60d42a68562c368395792da6975d95 /calm/package.py
parent17dc61e9f95c74366465d0a56121cef84b88d415 (diff)
Expire python2 modules
For the first time, we are expiring obsolete packages just because they are obsolete, so it is time for the previous commit, to ensure we retain any obsolete: hints they might have caused to be generated.
Diffstat (limited to 'calm/package.py')
-rwxr-xr-xcalm/package.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/calm/package.py b/calm/package.py
index 9f50d6f..e45874c 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -584,7 +584,7 @@ def sort_key(k):
# generate a record to add an obsoletes: header to the replacement package.
#
-OBSOLETE_CONVERT_THRESHOLD_YEARS = 20
+OBSOLETE_CONVERT_THRESHOLD_YEARS = 2
def upgrade_oldstyle_obsoletes(packages, missing_obsolete):
@@ -1568,9 +1568,10 @@ def mark_fn(packages, po, v, certain_age, vault_requests):
# - if package depends on anything in expired_provides
#
requires = po.version_hints[v].get('depends', '').split(', ')
- if any(ep in requires for ep in past_mistakes.expired_provides):
- logging.info("package '%s' version '%s' not retained as it requires a provide known to be expired" % (pn, v))
- return Freshness.conditional
+ if re.match(r'^python(|2|27)-', pn):
+ if any(ep in requires for ep in past_mistakes.expired_provides) or po.obsolete:
+ logging.info("package '%s' version '%s' not retained as it requires a provide known to be expired" % (pn, v))
+ return Freshness.conditional
# - explicitly marked as 'noretain'
#