From: Frank Lichtenheld Date: Fri, 30 Oct 2009 22:20:12 +0000 (+0000) Subject: Various fixes X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=00b677a8287006277663b1000e9187c02a732179;p=dak.git Various fixes Signed-off-by: Frank Lichtenheld --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index f7ef853d..1eaa3a7b 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2045,6 +2045,7 @@ def add_dsc_to_db(u, filename, session=None): if not entry.has_key("files id") or not entry["files id"]: filename = entry["pool name"] + filename poolfile = add_poolfile(filename, entry, dsc_location_id, session) + session.flush() entry["files id"] = poolfile.file_id source.poolfile_id = entry["files id"] diff --git a/daklib/queue.py b/daklib/queue.py index 9f731091..eaac5730 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -288,6 +288,7 @@ class Upload(object): for title, messages in msgs: if messages: msg += '\n\n%s:\n%s' % (title, '\n'.join(messages)) + msg += '\n' return msg