mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-13 04:11:07 +00:00
Forgive missing Packages files for new arches
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
3a4acc07bd
commit
ac670bc75e
14
britney.py
14
britney.py
@ -980,11 +980,21 @@ class Britney(object):
|
||||
binary_dir = "binary-%s" % arch
|
||||
filename = os.path.join(basedir,
|
||||
component, binary_dir, 'Packages')
|
||||
filename = possibly_compressed(filename)
|
||||
try:
|
||||
filename = possibly_compressed(filename)
|
||||
except FileNotFoundError as e:
|
||||
if arch not in self.options.new_arches:
|
||||
raise
|
||||
self.log("Ignoring missing file for new arch %s: %s" % (arch, filename))
|
||||
udeb_filename = os.path.join(basedir,
|
||||
component, "debian-installer",
|
||||
binary_dir, "Packages")
|
||||
udeb_filename = possibly_compressed(udeb_filename)
|
||||
try:
|
||||
udeb_filename = possibly_compressed(udeb_filename)
|
||||
except FileNotFoundError as e:
|
||||
if arch not in self.options.new_arches:
|
||||
raise
|
||||
self.log("Ignoring missing file for new arch %s: %s" % (arch, udeb_filename))
|
||||
self._read_packages_file(filename, arch,
|
||||
self.sources[distribution], packages)
|
||||
self._read_packages_file(udeb_filename, arch,
|
||||
|
Loading…
x
Reference in New Issue
Block a user