diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2023-10-17 15:37:14 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2024-01-10 01:08:58 +0300 |
commit | 74e796870e2480cde4d14c622cef7369a8e10d2b (patch) | |
tree | 3cc2f9c67b462022398739c962015166845e78a5 /calm/package.py | |
parent | 9506eb50062b2a431c9cf866ef55b09ec0150e97 (diff) |
Expunge all python2 modules
Diffstat (limited to 'calm/package.py')
-rwxr-xr-x | calm/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calm/package.py b/calm/package.py index f84d494..f70fb98 100755 --- a/calm/package.py +++ b/calm/package.py @@ -1636,10 +1636,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 re.match(r'^python(|2|27)-', pn): + if re.match(r'^python(|2|27)[-_]', pn): if any(ep in requires for ep in past_mistakes.expired_provides) or po.obsolete: logging.debug("package '%s' version '%s' not retained as it requires a provide known to be expired" % (pn, v)) - return Freshness.conditional + return Freshness.stale # - explicitly marked as 'noretain' # |