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-01-07 19:22:24 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-01-07 19:45:08 +0300
commitdac9781717443dc723a73f6faf0d8bcd2f42786f (patch)
tree8dc4fa62002cf5e2283fc36090cc257929bf3ec4
parent891c464a15c6c80013142e5b254876e1776a764e (diff)
Don't warn about obsoletion with no replacement for packages marked self-destruct
-rwxr-xr-xcalm/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/calm/package.py b/calm/package.py
index 84958d7..15a81c5 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -604,6 +604,11 @@ def upgrade_oldstyle_obsoletes(packages):
logging.debug('%s is hardcoded as obsoleted by %s ' % (p, o))
else:
+ # ignore self-destruct packages
+ provides = packages[p].version_hints[vr].get('provides', '')
+ if '_self-destruct' in provides:
+ continue
+
if len(requires) == 0:
# obsolete but has no replacement
logging.warning('%s is obsolete, but has no replacement' % (p))