From 606dbcb47094fb91563dd788fb7780239e9d97ab Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Sun, 6 Sep 2015 19:30:47 +0000 Subject: [PATCH] ignore arch all when looking for up-to-date bins If we have an up-to-date arch all package available for this architecture, that doesn't mean this architecture has an up-to-date build. We need an architecture specific up-to-date package for that. Signed-off-by: Ivo De Decker --- britney.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/britney.py b/britney.py index f6423a8..577194b 100755 --- a/britney.py +++ b/britney.py @@ -1437,15 +1437,18 @@ class Britney(object): pkgsv = binary_u[SOURCEVER] # if it wasn't built by the same source, it is out-of-date - # if there is at least one binary which is up-to-date, there - # is a build on this arch + # if there is at least one binary on this arch which is + # up-to-date, there is a build on this arch if not same_source(source_u[VERSION], pkgsv): if pkgsv not in oodbins: oodbins[pkgsv] = [] oodbins[pkgsv].append(pkg) continue else: - uptodatebins = True + # if the binary is arch all, it doesn't count as + # up-to-date for this arch + if binary_u[ARCHITECTURE] == arch: + uptodatebins = True # if the package is architecture-dependent or the current arch is `nobreakall' # find unsatisfied dependencies for the binary package