]> git.decadent.org.uk Git - dak.git/commitdiff
Fix function add_dsc_to_db().
authorTorsten Werner <twerner@debian.org>
Wed, 6 Apr 2011 19:17:13 +0000 (21:17 +0200)
committerTorsten Werner <twerner@debian.org>
Wed, 6 Apr 2011 19:17:13 +0000 (21:17 +0200)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 5c987bdc56881ab01dbc7884aa9f31c26431017e..7af4a7bd3ebd5471485bcfbfbf67318c490b1048 100755 (executable)
@@ -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"):