From: Mike O'Connor Date: Fri, 30 Oct 2009 09:16:36 +0000 (+0100) Subject: trailing whitespace, update to 18 not 20 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5045c92e8456268ba60686aaa5d106fae61c3027;p=dak trailing whitespace, update to 18 not 20 Signed-off-by: Mike O'Connor --- diff --git a/dak/dakdb/update18.py b/dak/dakdb/update18.py index b35c84b3..50767d88 100755 --- a/dak/dakdb/update18.py +++ b/dak/dakdb/update18.py @@ -153,9 +153,9 @@ def do_update(self): c.execute("GRANT ALL ON known_changes TO ftpmaster;") c.execute("GRANT SELECT ON known_changes TO public;") - c.execute("UPDATE config SET value = '20' WHERE name = 'db_revision'") + c.execute("UPDATE config SET value = '18' WHERE name = 'db_revision'") self.db.commit() except psycopg2.ProgrammingError, msg: self.db.rollback() - raise DBUpdateError, "Unable to apply source format update 15, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError, "Unable to apply known_changes update 18, rollback issued. Error message diff --git a/daklib/changes.py b/daklib/changes.py index 2ecd9af4..c5ac64a9 100755 --- a/daklib/changes.py +++ b/daklib/changes.py @@ -188,7 +188,7 @@ class Changes(object): if privatetrans: session.commit() session.close() - + def add_known_changes(self, queue, session=None): cnf = Config()