import apt_pkg
import time
import errno
-from daklib import database
+
from daklib import utils
from daklib.dak_exceptions import DBUpdateError
################################################################################
Cnf = None
-projectB = None
-required_database_schema = 4
+required_database_schema = 14
################################################################################
################################################################################
def get_db_rev(self):
- global projectB
-
# We keep database revision info the config table
# Try and access it
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))
################################################################################
def init (self):
- global Cnf, projectB
+ global Cnf
Cnf = utils.get_conf()
arguments = [('h', "help", "Update-DB::Options::Help")]