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>2022-02-17 15:29:48 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2022-02-23 16:45:27 +0300
commit0c139f81907b572da7a87652ea414a089080b640 (patch)
tree706483cf30a17ff87a64d85613bd7b32ec2cd7ff
parentf3a2daab817aa876e3e23aeaf92bf493233d8963 (diff)
Extend relaxed package retention to obsolete packages
-rwxr-xr-xcalm/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/calm/package.py b/calm/package.py
index 983e982..6d9901b 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -1351,6 +1351,9 @@ def stale_packages(packages):
if po.tar(v).sourceless:
mark = Freshness.conditional
break
+ # XXX: initially only apply to obsolete packages
+ if po.obsolete:
+ mark = Freshness.conditional
# mark any versions explicitly listed in the keep: override hint (unconditionally)
for v in po.override_hints.get('keep', '').split():