]> git.decadent.org.uk Git - dak.git/commitdiff
dont replace the path in DAILY_APT_CONF right now, make it nicer later in an AptCOnf...
authorJoerg Jaspert <joerg@debian.org>
Tue, 6 Jul 2010 20:54:41 +0000 (22:54 +0200)
committerJoerg Jaspert <joerg@debian.org>
Tue, 6 Jul 2010 20:54:41 +0000 (22:54 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/generate_packages_sources.py
daklib/dbconn.py

index 79db33ba57d0cc88d70d02d195514fd6fb2b17eb..d91ec8fc9966220247a5d3c921e3cdc373d9af9c 100755 (executable)
@@ -105,7 +105,7 @@ def main ():
         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
index 97c2bc383add1b1007f5a0c1463bf30b17f0d5c9..28db5c03b2a42bdbf965c3c435c03894bbcea49b 100755 (executable)
@@ -2462,7 +2462,7 @@ SUITE_FIELDS = [ ('SuiteName', 'suite_name'),
 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/";
 };
@@ -2671,7 +2671,7 @@ class Suite(object):
 
         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
 
@@ -2688,9 +2688,9 @@ class Suite(object):
         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