]> err.no Git - dak/commitdiff
allow setting in_queue
authorMark Hymers <mhy@debian.org>
Sat, 7 Nov 2009 13:34:11 +0000 (13:34 +0000)
committerMark Hymers <mhy@debian.org>
Sat, 7 Nov 2009 13:34:11 +0000 (13:34 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/changes.py

index b1a5f60afc88a4d1489f2c9dc37339bc60a1a28f..6b7762681e8febb39b8531363e4261124c7eec79 100644 (file)
@@ -188,7 +188,7 @@ class Changes(object):
                 self.changes[key]='missing'
 
     @session_wrapper
-    def add_known_changes(self, dirpath, session=None):
+    def add_known_changes(self, dirpath, in_queue=None, session=None):
         """add "missing" in fields which we will require for the known_changes table"""
         cnf = Config()
 
@@ -207,12 +207,13 @@ class Changes(object):
         # TODO: Use ORM
         session.execute(
             """INSERT INTO changes
-              (changesname, seen, source, binaries, architecture, version,
+              (changesname, in_queue, seen, source, binaries, architecture, version,
               distribution, urgency, maintainer, fingerprint, changedby, date)
-              VALUES (:changesfile,:filetime,:source,:binary, :architecture,
+              VALUES (:changesfile,:in_queue,:filetime,:source,:binary, :architecture,
               :version,:distribution,:urgency,:maintainer,:fingerprint,:changedby,:date)""",
               { 'changesfile':  self.changes_file,
                 'filetime':     filetime,
+                'in_queue':     in_queue,
                 'source':       self.changes["source"],
                 'binary':       multivalues["binary"],
                 'architecture': multivalues["architecture"],