diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2022-02-17 15:29:48 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2022-02-23 16:45:27 +0300 |
commit | 0c139f81907b572da7a87652ea414a089080b640 (patch) | |
tree | 706483cf30a17ff87a64d85613bd7b32ec2cd7ff | |
parent | f3a2daab817aa876e3e23aeaf92bf493233d8963 (diff) |
Extend relaxed package retention to obsolete packages
-rwxr-xr-x | calm/package.py | 3 |
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(): |