Browse Source

Add comment to clarify smooth update code

devuan-deployment
Ivo De Decker 1 year ago
parent
commit
301298e8c4
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      britney2/utils.py

+ 9
- 0
britney2/utils.py View File

@@ -754,6 +754,15 @@ def find_smooth_updateable_binaries(binaries_to_check,
combined = set(smoothbins)
combined.add(pkg_id)
for rdep in rdeps:
# each dependency clause has a set of possible
# alternatives that can satisfy that dependency.
# if any of them is outside the set of smoothbins, the
# dependency can be satisfied even if this binary was
# removed, so there is no need to keep it around for a
# smooth update
# if not, only this binary can satisfy the dependency, so
# we should keep it around until the rdep is no longer in
# testing
for dep_clause in pkg_universe.dependencies_of(rdep):
# filter out cruft binaries from unstable, because
# they will not be added to the set of packages that


Loading…
Cancel
Save