[dak/bpo] Fixes
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
dak/dakdb/update4.py | 2 ++
dak/update_db.py | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dak/dakdb/update4.py b/dak/dakdb/update4.py
index 88f8f86..8c55d09 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 fc2e3e1..df54045 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))
--
1.5.6.5
Reply to: