From: Mark Hymers Date: Sat, 7 Nov 2009 13:34:11 +0000 (+0000) Subject: allow setting in_queue X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f78863f22e66a3731412a433ea5670aabaf7624a;p=dak allow setting in_queue Signed-off-by: Mark Hymers --- diff --git a/daklib/changes.py b/daklib/changes.py index b1a5f60a..6b776268 100644 --- a/daklib/changes.py +++ b/daklib/changes.py @@ -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"],