@ -327,6 +327,7 @@ class ExcuseFinder(object):
# at this point, we check the status of the builds on all the supported architectures
# at this point, we check the status of the builds on all the supported architectures
# to catch the out-of-date ones
# to catch the out-of-date ones
archs_to_consider = list ( self . options . architectures )
archs_to_consider = list ( self . options . architectures )
if self . options . has_arch_all_buildds :
archs_to_consider . append ( ' all ' )
archs_to_consider . append ( ' all ' )
for arch in archs_to_consider :
for arch in archs_to_consider :
oodbins = { }
oodbins = { }
@ -345,13 +346,20 @@ class ExcuseFinder(object):
binary_u = all_binaries [ pkg_id ]
binary_u = all_binaries [ pkg_id ]
pkgsv = binary_u . source_version
pkgsv = binary_u . source_version
# arch:all packages are treated separately from arch:arch
# arch:all packages are treated separately from arch:arch if
# they have their own buildds
if self . options . has_arch_all_buildds :
if binary_u . architecture != arch :
if binary_u . architecture != arch :
continue
continue
# TODO filter binaries based on checks below?
# TODO filter binaries based on checks below?
excuse . add_package ( pkg_id )
excuse . add_package ( pkg_id )
# If we don't have arch:all buildds, drop arch:all packages on
# the non-arch-all-buildd arch
if not self . options . has_arch_all_buildds and arch != self . options . all_buildarch and binary_u . architecture != arch :
continue
# if it wasn't built by the same source, it is out-of-date
# if it wasn't built by the same source, it is out-of-date
# if there is at least one binary on this arch which is
# if there is at least one binary on this arch which is
# up-to-date, there is a build on this arch
# up-to-date, there is a build on this arch