britney2: Mirror layout - also read d-i Packages files

Signed-off-by: Niels Thykier <niels@thykier.net>
debian
Niels Thykier 9 years ago
parent 247b083e31
commit f23a72dcdb

@ -969,11 +969,19 @@ class Britney(object):
if self.options.components: if self.options.components:
packages = {} packages = {}
for component in self.options.components: for component in self.options.components:
binary_dir = "binary-%s" % arch
filename = os.path.join(basedir, filename = os.path.join(basedir,
component, "binary-%s" % arch, "Packages") component, binary_dir, 'Packages')
filename = possibly_compressed(filename) filename = possibly_compressed(filename)
udeb_filename = os.path.join(basedir,
component, "debian-installer",
binary_dir, "Packages")
udeb_filename = possibly_compressed(filename)
self._read_packages_file(filename, arch, self._read_packages_file(filename, arch,
self.sources[distribution], packages) self.sources[distribution], packages)
self._read_packages_file(udeb_filename, arch,
self.sources[distribution], packages)
else: else:
filename = os.path.join(basedir, "Packages_%s" % arch) filename = os.path.join(basedir, "Packages_%s" % arch)
packages = self._read_packages_file(filename, arch, packages = self._read_packages_file(filename, arch,

Loading…
Cancel
Save