From: Frank Lichtenheld Date: Sun, 1 Nov 2009 20:30:22 +0000 (+0000) Subject: make sure that we add all poolfiles to the buildd queue X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed02a9999c22b2743e2d3f9c70a151c7b14cba5c;p=dak make sure that we add all poolfiles to the buildd queue We missed the .orig.tar in cases where it was already in the pool. Signed-off-by: Frank Lichtenheld --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 210c43ae..955ca815 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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)