Skip to content

Commit

Permalink
Also allow remembered, synthetic obsoletes: in valid_requires
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-turney committed May 4, 2024
1 parent 21a8e6b commit 6d0234c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions calm/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6d0234c

Please sign in to comment.