]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/dbconn.py
Add start of a generate_packages_sources command
[dak.git] / daklib / dbconn.py
index 5f45cdfc9f8ee1763ef3ab2f3c40337c36d4a577..13d324ca30b6fcbc07a74b7239159ca1c9f0d639 100755 (executable)
@@ -441,8 +441,8 @@ MINIMAL_APT_CONF="""
 Dir
 {
    ArchiveDir "%(archivepath)s";
-   OverrideDir "/srv/ftp.debian.org/scripts/override/";
-   CacheDir "/srv/ftp.debian.org/database/";
+   OverrideDir "/srv/ftp-master.debian.org/scripts/override/";
+   CacheDir "/srv/ftp-master.debian.org/database/";
 };
 
 Default
@@ -1511,7 +1511,7 @@ def get_location(location, component=None, archive=None, session=None):
     and archive
 
     @type location: string
-    @param location: the path of the location, e.g. I{/srv/ftp.debian.org/ftp/pool/}
+    @param location: the path of the location, e.g. I{/srv/ftp-master.debian.org/ftp/pool/}
 
     @type component: string
     @param component: the component name (if None, no restriction applied)
@@ -2305,7 +2305,7 @@ def add_dsc_to_db(u, filename, session=None):
     # Add the src_uploaders to the DB
     uploader_ids = [source.maintainer_id]
     if u.pkg.dsc.has_key("uploaders"):
-        for up in u.pkg.dsc["uploaders"].replace(">, ", "\t")split("\t"):
+        for up in u.pkg.dsc["uploaders"].replace(">, ", ">\t").split("\t"):
             up = up.strip()
             uploader_ids.append(get_or_set_maintainer(up, session).maintainer_id)
 
@@ -2487,6 +2487,9 @@ class Suite(object):
 
         return "\n".join(ret)
 
+    def generate_packages_sources(self, Logger):
+        """ Generate Packages/Sources files for the given suite"
+
 __all__.append('Suite')
 
 @session_wrapper