mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-06 07:12:05 +00:00
Make linux* wait on corresponding -meta package
We want to treat linux-$flavor and linux-meta-$flavor as one set in britney which goes in together or not at all. We never want to promote linux-$flavor without the accompanying linux-meta-$flavor. Introduce a synthetic linux* → linux-meta* dependency to enforce this grouping.
This commit is contained in:
parent
f8a1c5eb60
commit
01bc09e618
20
britney.py
20
britney.py
@ -1297,8 +1297,26 @@ class Britney(object):
|
|||||||
parse_depends = self._parse_depends
|
parse_depends = self._parse_depends
|
||||||
get_dependency_solvers = self.get_dependency_solvers
|
get_dependency_solvers = self.get_dependency_solvers
|
||||||
|
|
||||||
# analyze the dependency fields (if present)
|
|
||||||
deps = binary_u.depends
|
deps = binary_u.depends
|
||||||
|
|
||||||
|
# make linux* wait on corresponding -meta package
|
||||||
|
if src.startswith('linux'):
|
||||||
|
meta = src.replace('linux', 'linux-meta', 1)
|
||||||
|
if meta in self.sources[suite]:
|
||||||
|
# copy deps here, don't modify self.binaries!
|
||||||
|
if deps:
|
||||||
|
deps = deps + ', '
|
||||||
|
else:
|
||||||
|
deps = ''
|
||||||
|
# find binary of our architecture
|
||||||
|
for pkg_id in self.sources[suite][meta].binaries:
|
||||||
|
if pkg_id.architecture == arch:
|
||||||
|
binver = self.binaries[suite][arch][0][pkg_id.package_name].source_version
|
||||||
|
deps += '%s (>= %s)' % (pkg_id.package_name, binver)
|
||||||
|
self.log('Synthesizing dependency %s to %s: %s' % (meta, src, deps))
|
||||||
|
break
|
||||||
|
|
||||||
|
# analyze the dependency fields (if present)
|
||||||
if not deps:
|
if not deps:
|
||||||
return True
|
return True
|
||||||
is_all_ok = True
|
is_all_ok = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user