X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fupdate_db.py;h=c54971cf902280557814dc60095021e7f8d22c27;hb=1dbc111b490bf36846f6ad32d6e583f9fcf23e17;hp=b559e544dfe57982af3e7799936cb25a056efaa3;hpb=35cd0972b5e14dc8727403e13fccd30776f3ae02;p=dak.git diff --git a/dak/update_db.py b/dak/update_db.py index b559e544..c54971cf 100755 --- a/dak/update_db.py +++ b/dak/update_db.py @@ -37,15 +37,14 @@ import os 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 = 12 +required_database_schema = 16 ################################################################################ @@ -86,8 +85,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 +156,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")]