From: Torsten Werner Date: Wed, 6 Apr 2011 19:17:13 +0000 (+0200) Subject: Fix function add_dsc_to_db(). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98c2971266ad5575ca5accc60df6d6d1c06d397d;p=dak Fix function add_dsc_to_db(). Signed-off-by: Torsten Werner --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 5c987bdc..7af4a7bd 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2681,6 +2681,8 @@ def add_dsc_to_db(u, filename, session=None): session.add(df) # Add the src_uploaders to the DB + session.flush() + session.refresh(source) source.uploaders = [source.maintainer] if u.pkg.dsc.has_key("uploaders"): for up in u.pkg.dsc["uploaders"].replace(">, ", ">\t").split("\t"):