]> err.no Git - dak/commitdiff
make sure that we add all poolfiles to the buildd queue
authorFrank Lichtenheld <djpig@debian.org>
Sun, 1 Nov 2009 20:30:22 +0000 (20:30 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Sun, 1 Nov 2009 20:52:58 +0000 (20:52 +0000)
We missed the .orig.tar in cases where it was already in
the pool.

Signed-off-by: Frank Lichtenheld <djpig@debian.org>
daklib/dbconn.py

index 210c43aeee5b749f574cf9291cba116762656279..955ca8154bb98440a8af4aa5fcc3a823b48dcba5 100644 (file)
@@ -2062,6 +2062,11 @@ def add_dsc_to_db(u, filename, session=None):
                 poolfile = add_poolfile(filename, dentry, dsc_location_id, session)
                 pfs.append(poolfile)
                 files_id = poolfile.file_id
+        else:
+            poolfile = get_poolfile_by_id(files_id, session)
+            if poolfile is None:
+                utils.fubar("INTERNAL ERROR. Found no poolfile with id %d" % files_id)
+            pfs.append(poolfile)
 
         df.poolfile_id = files_id
         session.add(df)