mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-20 07:31:10 +00:00
avoid duplicates in source BINARIES element when multiple versions of a package (e.g. Architecture: all) are present
This commit is contained in:
parent
b91d765819
commit
93291250c6
@ -562,7 +562,9 @@ class Britney(object):
|
||||
|
||||
# if the source package is available in the distribution, then register this binary package
|
||||
if dpkg[SOURCE] in sources[distribution]:
|
||||
sources[distribution][dpkg[SOURCE]][BINARIES].append(pkg + "/" + arch)
|
||||
pkg_arch = pkg + "/" + arch
|
||||
if pkg_arch not in sources[distribution][dpkg[SOURCE]][BINARIES]:
|
||||
sources[distribution][dpkg[SOURCE]][BINARIES].append(pkg_arch)
|
||||
# if the source package doesn't exist, create a fake one
|
||||
else:
|
||||
sources[distribution][dpkg[SOURCE]] = [dpkg[SOURCEVER], 'faux', [pkg + "/" + arch], None, True]
|
||||
|
Loading…
x
Reference in New Issue
Block a user