Skip to content

Commit

Permalink
Drop 'noretain' hint
Browse files Browse the repository at this point in the history
This was pretty much useless, even more so now we have the 'vault'
command to do the same thing.

This effectively reverts commit aec1dcf.
  • Loading branch information
jon-turney committed Apr 23, 2024
1 parent f1ccc90 commit f4dd6de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion calm/hint.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
'keep-superseded-test': 'noval',
'disable-check': 'val',
'replace-versions': 'val',
'noretain': 'val',
}

# valid categories
Expand Down
7 changes: 0 additions & 7 deletions calm/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1683,13 +1683,6 @@ def mark_fn(packages, po, v, certain_age, vault_requests):
logging.debug("package '%s' version '%s' not retained as it requires a provide known to be expired" % (pn, v))
return Freshness.conditional

# - explicitly marked as 'noretain'
#
if 'noretain' in po.override_hints:
noretain_versions = po.override_hints.get('noretain', '').split()
if (v in noretain_versions) or ('all' in noretain_versions):
return Freshness.conditional

# - marked via 'calm-tool vault'
#
es = po.srcpackage(v, suffix=False)
Expand Down

0 comments on commit f4dd6de

Please sign in to comment.