From 929bf86ab60e428e656c2212fe5805b8ca1b9c43 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 19 Feb 2009 23:15:02 +0100 Subject: [PATCH] Fixes Signed-off-by: Joerg Jaspert --- dak/dakdb/update4.py | 2 ++ dak/update_db.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.2