From ed02a9999c22b2743e2d3f9c70a151c7b14cba5c Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sun, 1 Nov 2009 20:30:22 +0000 Subject: [PATCH] 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 --- daklib/dbconn.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5