mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-29 18:41:28 +00:00
Don't calculate smoothbins for sources not in unstable
When building the excuses, don't calculate smoothbins if the source is not in unstable. Doing so would result in a KeyError and a crash. This happens for sources that are in testing and (testing-)proposed-updates, but not in unstable. Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
parent
12c1d70cb3
commit
db584d9fdc
@ -1295,12 +1295,14 @@ class Britney(object):
|
|||||||
# removing binary packages
|
# removing binary packages
|
||||||
primary_source_suite = self.suite_info.primary_source_suite
|
primary_source_suite = self.suite_info.primary_source_suite
|
||||||
if not (ssrc and source_suite is not primary_source_suite):
|
if not (ssrc and source_suite is not primary_source_suite):
|
||||||
# for every binary package produced by this source in testing for this architecture
|
smoothbins = set()
|
||||||
|
if src in primary_source_suite.sources:
|
||||||
_, _, smoothbins, _ = self._compute_groups(src,
|
_, _, smoothbins, _ = self._compute_groups(src,
|
||||||
primary_source_suite,
|
primary_source_suite,
|
||||||
arch,
|
arch,
|
||||||
False)
|
False)
|
||||||
|
|
||||||
|
# for every binary package produced by this source in testing for this architecture
|
||||||
for pkg_id in sorted(x for x in source_t.binaries if x.architecture == arch):
|
for pkg_id in sorted(x for x in source_t.binaries if x.architecture == arch):
|
||||||
pkg = pkg_id.package_name
|
pkg = pkg_id.package_name
|
||||||
# if the package is architecture-independent, then ignore it
|
# if the package is architecture-independent, then ignore it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user