for a in arch_list:
Logger.log(['generating output for Suite %s, Architecture %s' % (s.suite_name, a.arch_string)])
print 'generating output for Suite %s, Architecture %s' % (s.suite_name, a.arch_string)
- threadpool.queueTask(s.generate_packages_sources, (s.suite_name, a.arch_string))
+ threadpool.queueTask(s.generate_packages_sources, (a.arch_string))
threadpool.joinAll()
# this script doesn't change the database
DAILY_APT_CONF="""
Dir
{
- ArchiveDir "%(archivepath)s";
+ ArchiveDir "/srv/ftp-master.debian.org/ftp/";
OverrideDir "/srv/ftp-master.debian.org/scripts/override/";
CacheDir "/srv/ftp-master.debian.org/database/";
};
return "\n".join(ret)
- def generate_packages_sources(self, suite, arch):
+ def generate_packages_sources(self, arch):
"""
Generate Packages/Sources files with apt-ftparchive for the given suite/arch
try:
# Write apt.conf
(ac_fd, ac_name) = mkstemp()
- os.write(ac_fd, DAILY_APT_CONF % {'archivepath': self.path})
+ os.write(ac_fd, DAILY_APT_CONF)
# here we want to generate the tree entries
- os.write(ac_fd, apt_trees[suite] % {'arch': arch})
+ os.write(ac_fd, apt_trees[self.suite_name] % {'arch': arch})
os.close(ac_fd)
# Run apt-ftparchive generate