From 203466bb518ab4137d6ed285dc3d0edb0bf25e7a Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 23 Mar 2016 20:07:25 +0000 Subject: [PATCH] Fix migration for sources with old cruft that isn't in testing A package can have old cruft no longer in testing, which can't migrate because it depends on old libraries or packages that aren't in testing anymore, preventing migration. There's no point in trying to migrate old cruft that has already been removed in testing anyway, so don't do that. Signed-off-by: Emilio Pozuelo Monfort Signed-off-by: Niels Thykier --- britney.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/britney.py b/britney.py index 59d05c3..f806047 100755 --- a/britney.py +++ b/britney.py @@ -2024,6 +2024,12 @@ class Britney(object): rms.remove((rm_b, rm_v, rm_p)) continue + # Don't add the binary if it is old cruft that is no longer in testing + if (parch not in self.options.fucked_arches and + source_data[VERSION] != self.binaries[suite][parch][0][binary][SOURCEVER] and + binary not in binaries_t[parch][0]): + continue + adds.add(pkg_id) return (adds, rms, smoothbins)