]> git.decadent.org.uk Git - dak.git/commitdiff
pass arguments properly to add_known_changes
authorMark Hymers <mhy@debian.org>
Sat, 7 Nov 2009 14:19:15 +0000 (14:19 +0000)
committerMark Hymers <mhy@debian.org>
Sat, 7 Nov 2009 14:19:15 +0000 (14:19 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/import_known_changes.py
dak/process_upload.py

index 84444ff1132601f421b6e58ec1dc49c8f261d4b8..da696aedc079b2cf846a3490b8ae0676e733538f 100755 (executable)
@@ -257,7 +257,7 @@ class ImportThread(threading.Thread):
                 changesfile = os.path.join(to_import.dirpath, to_import.changesfile)
                 changes.changes = parse_changes(changesfile, signing_rules=-1)
                 changes.changes["fingerprint"] = check_signature(changesfile)
-                changes.add_known_changes(to_import.dirpath, self.session)
+                changes.add_known_changes(to_import.dirpath, session=self.session)
                 self.session.commit()
 
             except InvalidDscError, line:
index 155ba1dd124823a719ddd44c8b50113d2125ecc7..ec7fbd35a19a70e05be39d803516bc0fccf6ca1d 100755 (executable)
@@ -283,20 +283,20 @@ def action(u, session):
         u.do_reject(0, pi)
     elif answer == 'A':
         if not chg:
-            chg = u.pkg.add_known_changes(holding.holding_dir, session)
+            chg = u.pkg.add_known_changes(holding.holding_dir, session=session)
         u.accept(summary, short_summary, session)
         u.check_override()
         session.commit()
         u.remove()
     elif answer == 'P':
         if not chg:
-            chg = u.pkg.add_known_changes(holding.holding_dir, session)
+            chg = u.pkg.add_known_changes(holding.holding_dir, session=session)
         package_to_queue(u, summary, short_summary, policyqueue, chg, session)
         session.commit()
         u.remove()
     elif answer == queuekey:
         if not chg:
-            chg = u.pkg.add_known_changes(holding.holding_dir, session)
+            chg = u.pkg.add_known_changes(holding.holding_dir, session=session)
         QueueInfo[qu]["process"](u, summary, short_summary, chg, session)
         session.commit()
         u.remove()