]> git.donarmstrong.com Git - dak.git/blobdiff - daklib/lists.py
daklib/upload.py: Use common base class for all exception.
[dak.git] / daklib / lists.py
index e479685499438b5b49178c298d737ac6b8c9d9c5..5766371ce8382715937caffadb0a6b7682b679ce 100644 (file)
@@ -42,7 +42,7 @@ def getSources(suite, component, session, timestamp = None):
     if timestamp:
         extra_cond = "AND extract(epoch from sa.created) > %d" % timestamp
     query = """
-        SELECT s.id, archive.path || '/pool/', c.name || '/' || f.filename
+        SELECT s.id, archive.path || 'pool/', c.name || '/' || f.filename
             FROM source s
             JOIN src_associations sa
                 ON s.id = sa.source AND sa.suite = :suite %s
@@ -112,7 +112,7 @@ CREATE TEMP TABLE gf_candidates (
     source text);
 
 INSERT INTO gf_candidates (id, filename, path, architecture, src, source)
-    SELECT bc.id, c.name || '/' || f.filename, archive.path || '/pool/' , bc.architecture, bc.source as src, s.source
+    SELECT bc.id, c.name || '/' || f.filename, archive.path || 'pool/' , bc.architecture, bc.source as src, s.source
         FROM b_candidates bc
         JOIN source s ON bc.source = s.id
         JOIN files f ON bc.file = f.id