From 6d0234cf6e9e0bf052d669d3480549a7517b1bd1 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sat, 4 May 2024 17:36:20 +0100 Subject: [PATCH] Also allow remembered, synthetic obsoletes: in valid_requires --- calm/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calm/package.py b/calm/package.py index 98fdd34..03afeca 100755 --- a/calm/package.py +++ b/calm/package.py @@ -772,6 +772,11 @@ def validate_packages(args, packages, valid_provides_extra=None, missing_obsolet packages[p].obsoleted_by = set() packages[p].orphaned = False + # it's also valid to requires: packages which are named in a synthetic + # obsoletes: + for r in missing_obsolete_extra.values(): + valid_requires.update(r) + # it's also valid to obsoletes: packages which have been removed valid_obsoletes = set(valid_requires) if valid_provides_extra: