mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-24 08:51:31 +00:00
britney.py: Make loading of constraints+faux pkgs suite agnostic
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
7b38fbed91
commit
b3bfda7d6c
20
britney.py
20
britney.py
@ -589,6 +589,8 @@ class Britney(object):
|
|||||||
get_field = tag_file.section.get
|
get_field = tag_file.section.get
|
||||||
step = tag_file.step
|
step = tag_file.step
|
||||||
no = 0
|
no = 0
|
||||||
|
pri_source_suite = self.suite_info.primary_source_suite
|
||||||
|
target_suite = self.suite_info.target_suite
|
||||||
|
|
||||||
while step():
|
while step():
|
||||||
no += 1
|
no += 1
|
||||||
@ -617,8 +619,8 @@ class Britney(object):
|
|||||||
[],
|
[],
|
||||||
)
|
)
|
||||||
|
|
||||||
self.sources['testing'][pkg_name] = src_data
|
target_suite.sources[pkg_name] = src_data
|
||||||
self.sources['unstable'][pkg_name] = src_data
|
pri_source_suite.sources[pkg_name] = src_data
|
||||||
|
|
||||||
for arch in archs:
|
for arch in archs:
|
||||||
pkg_id = BinaryPackageId(pkg_name, version, arch)
|
pkg_id = BinaryPackageId(pkg_name, version, arch)
|
||||||
@ -640,8 +642,8 @@ class Britney(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
src_data.binaries.append(pkg_id)
|
src_data.binaries.append(pkg_id)
|
||||||
self.binaries['testing'][arch][0][pkg_name] = bin_data
|
target_suite.binaries[arch][0][pkg_name] = bin_data
|
||||||
self.binaries['unstable'][arch][0][pkg_name] = bin_data
|
pri_source_suite.binaries[arch][0][pkg_name] = bin_data
|
||||||
self.all_binaries[pkg_id] = bin_data
|
self.all_binaries[pkg_id] = bin_data
|
||||||
|
|
||||||
def _load_constraints(self, constraints_file):
|
def _load_constraints(self, constraints_file):
|
||||||
@ -663,6 +665,8 @@ class Britney(object):
|
|||||||
constraints = {
|
constraints = {
|
||||||
'keep-installable': keep_installable
|
'keep-installable': keep_installable
|
||||||
}
|
}
|
||||||
|
pri_source_suite = self.suite_info.primary_source_suite
|
||||||
|
target_suite = self.suite_info.target_suite
|
||||||
|
|
||||||
while step():
|
while step():
|
||||||
no += 1
|
no += 1
|
||||||
@ -693,8 +697,8 @@ class Britney(object):
|
|||||||
[],
|
[],
|
||||||
[],
|
[],
|
||||||
)
|
)
|
||||||
self.sources['testing'][pkg_name] = src_data
|
target_suite.sources[pkg_name] = src_data
|
||||||
self.sources['unstable'][pkg_name] = src_data
|
pri_source_suite.sources[pkg_name] = src_data
|
||||||
keep_installable.append(pkg_name)
|
keep_installable.append(pkg_name)
|
||||||
for arch in self.options.architectures:
|
for arch in self.options.architectures:
|
||||||
deps = []
|
deps = []
|
||||||
@ -731,8 +735,8 @@ class Britney(object):
|
|||||||
pkg_id,
|
pkg_id,
|
||||||
)
|
)
|
||||||
src_data.binaries.append(pkg_id)
|
src_data.binaries.append(pkg_id)
|
||||||
self.binaries['testing'][arch][0][pkg_name] = bin_data
|
target_suite.binaries[arch][0][pkg_name] = bin_data
|
||||||
self.binaries['unstable'][arch][0][pkg_name] = bin_data
|
pri_source_suite.binaries[arch][0][pkg_name] = bin_data
|
||||||
self.all_binaries[pkg_id] = bin_data
|
self.all_binaries[pkg_id] = bin_data
|
||||||
|
|
||||||
return constraints
|
return constraints
|
||||||
|
Loading…
x
Reference in New Issue
Block a user