From 98c2971266ad5575ca5accc60df6d6d1c06d397d Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 6 Apr 2011 21:17:13 +0200 Subject: [PATCH] Fix function add_dsc_to_db(). Signed-off-by: Torsten Werner --- daklib/dbconn.py | 2 ++ 1 file changed, 2 insertions(+) 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"): -- 2.39.5