From fa6b95e0b31fa4e6d3137d3aae9c6f98a9c66193 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 25 Feb 2010 20:23:02 +0000 Subject: [PATCH] Remove duplicate binary packages when building package lists Signed-off-by: Adam D. Barratt --- britney.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/britney.py b/britney.py index 5e95418..c41be75 100755 --- a/britney.py +++ b/britney.py @@ -457,6 +457,14 @@ class Britney: while Packages.Step(): pkg = get_field('Package') version = get_field('Version') + + # There may be multiple versions of any arch:all packages + # (in unstable) if some architectures have out-of-date + # binaries. We only ever consider the package with the + # largest version for migration. + if pkg in packages and apt_pkg.VersionCompare(packages[pkg][0], version) > 0: + continue + final_conflicts_list = [] conflicts = get_field('Conflicts') if conflicts: