From 00b677a8287006277663b1000e9187c02a732179 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 30 Oct 2009 22:20:12 +0000 Subject: [PATCH] Various fixes Signed-off-by: Frank Lichtenheld --- daklib/dbconn.py | 1 + daklib/queue.py | 1 + 2 files changed, 2 insertions(+) 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 -- 2.39.5