]> git.decadent.org.uk Git - dak.git/blobdiff - dak/update_db.py
add wrapper routines
[dak.git] / dak / update_db.py
index 0d4e65dbd8bad061edd09f7d59a588261fda96e7..e0a4b9bb15a4c27dfc9a2cddc0110a4feaed9d2b 100755 (executable)
@@ -37,7 +37,7 @@ import os
 import apt_pkg
 import time
 import errno
-from daklib import database
+
 from daklib import utils
 from daklib.dak_exceptions import DBUpdateError
 
@@ -45,7 +45,7 @@ from daklib.dak_exceptions import DBUpdateError
 
 Cnf = None
 projectB = None
-required_database_schema = 5
+required_database_schema = 13
 
 ################################################################################
 
@@ -86,8 +86,6 @@ Updates dak's database schema to the lastest version. You should disable crontab
 ################################################################################
 
     def get_db_rev(self):
-        global projectB
-
         # We keep database revision info the config table
         # Try and access it
 
@@ -159,7 +157,7 @@ Updates dak's database schema to the lastest version. You should disable crontab
 ################################################################################
 
     def init (self):
-        global Cnf, projectB
+        global Cnf
 
         Cnf = utils.get_conf()
         arguments = [('h', "help", "Update-DB::Options::Help")]