From 5045c92e8456268ba60686aaa5d106fae61c3027 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Fri, 30 Oct 2009 10:16:36 +0100 Subject: [PATCH] trailing whitespace, update to 18 not 20 Signed-off-by: Mike O'Connor --- dak/dakdb/update18.py | 4 ++-- daklib/changes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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() -- 2.39.5