From: Joerg Jaspert Date: Thu, 19 Feb 2009 22:15:02 +0000 (+0100) Subject: Fixes X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=929bf86ab60e428e656c2212fe5805b8ca1b9c43;p=dak.git Fixes Signed-off-by: Joerg Jaspert --- diff --git a/dak/dakdb/update4.py b/dak/dakdb/update4.py index 88f8f867..8c55d09b 100755 --- a/dak/dakdb/update4.py +++ b/dak/dakdb/update4.py @@ -62,6 +62,8 @@ def do_update(self): for arch in architectures: c.execute(query, [suites[suite], archs[arch]]) + c.execute("UPDATE config SET value = '4' WHERE name = 'db_revision'") + self.db.commit() except psycopg2.ProgrammingError, msg: diff --git a/dak/update_db.py b/dak/update_db.py index fc2e3e17..df540451 100755 --- a/dak/update_db.py +++ b/dak/update_db.py @@ -144,7 +144,7 @@ Updates dak's database schema to the lastest version. You should disable crontab sys.exit(0) for i in range (database_revision, required_database_schema): - print "updating databse schema from " + str(database_revision) + " to " + str(i+1) + print "updating database schema from " + str(database_revision) + " to " + str(i+1) try: dakdb = __import__("dakdb", globals(), locals(), ['update'+str(i+1)]) update_module = getattr(dakdb, "update"+str(i+1))