From 02e9779d357e102c40d69f6beb35dd0aa23b6be8 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 8 Jul 2014 15:12:22 +0100 Subject: [PATCH] Only flag an out-of-date package as possible NBS if the out-of-date version is also the maximum version across all architectures. --- britney.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/britney.py b/britney.py index de29342..83db505 100755 --- a/britney.py +++ b/britney.py @@ -1512,10 +1512,12 @@ class Britney(object): oodtxt = "" for v in oodbins.keys(): if oodtxt: oodtxt = oodtxt + "; " - if source_t and same_source(source_t[VERSION], v): - maybe_nbs = "" - else: - maybe_nbs = "; NBS?" + maybe_nbs = "" + if not source_t or same_source(source_t[VERSION], v): + for pkg in oodbins[v]: + if self.__maxver(pkg, suite) == v: + maybe_nbs = "; NBS?" + break oodtxt = oodtxt + "%s (from %s%s)" % \ (", ".join(sorted(oodbins[v])), urllib.quote(src.split("/")[0]), urllib.quote(v), v, maybe_nbs)