From b839e1a4594dc6fe1d5899c59ffdf2d75eba373b Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Tue, 30 Oct 2018 12:20:06 +0000 Subject: [PATCH] Ignore dependencies of cruft when building excuses. Don't make dependencies of cruft a blocker for being a candidate. In most cases, the cruft won't migrate to testing, so it shouldn't be a blocker. If the cruft would be considered for migration to testing, the installability check will catch missing deps. Signed-off-by: Ivo De Decker Signed-off-by: Niels Thykier --- britney.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/britney.py b/britney.py index dd42639..5236ab2 100755 --- a/britney.py +++ b/britney.py @@ -1073,6 +1073,13 @@ class Britney(object): provides_t_a = target_suite.provides_table[arch] binary_u = binaries_s_a[pkg] + source_s = source_suite.sources[binary_u.source] + if (binary_u.source_version != source_s.version): + # we don't want cruft to block packages, so if this is cruft, we + # can simply ignore it; if the cruft would migrate to testing, the + # installability check will catch missing deps + return True + # local copies for better performance parse_depends = apt_pkg.parse_depends