From f78863f22e66a3731412a433ea5670aabaf7624a Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sat, 7 Nov 2009 13:34:11 +0000 Subject: [PATCH] allow setting in_queue Signed-off-by: Mark Hymers --- daklib/changes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"], -- 2.39.5