Improve the checks for affected packages during a sourceful update

When marking the reverse dependencies of each binary package as affected
by a sourceful update to testing, the reverse dependencies of those
packages are also affected, and so on.

This helps to avoid situations where the installability of immediate
reverse dependencies is unchanged, but that of other packages in the
dependency chain is altered, for example where alternative dependencies
are used.

See Debian bug #614249 for further details.
debian
Adam D. Barratt 14 years ago
parent f9c562459d
commit ac61205d02

@ -2037,6 +2037,9 @@ class Britney:
for j in binaries[parch][0][binary][RDEPENDS]: for j in binaries[parch][0][binary][RDEPENDS]:
key = (j, parch) key = (j, parch)
if key not in affected: affected.append(key) if key not in affected: affected.append(key)
for p in self.get_full_tree(j, parch, 'testing'):
key = (p, parch)
if key not in affected: affected.append(key)
# remove the provided virtual packages # remove the provided virtual packages
for j in binaries[parch][0][binary][PROVIDES]: for j in binaries[parch][0][binary][PROVIDES]:
key = j + "/" + parch key = j + "/" + parch

Loading…
Cancel
Save