X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fupdate_db.py;h=4e7704e42a57883e2f2643d83a4630ead71e8309;hb=6d0c1b149473118c7efa7384a9f41fdf1428ffaf;hp=0d4e65dbd8bad061edd09f7d59a588261fda96e7;hpb=2816c734fc3a4a784e5643c9c3c256ba0727fd63;p=dak.git diff --git a/dak/update_db.py b/dak/update_db.py index 0d4e65db..4e7704e4 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 = 5 +required_database_schema = 21 ################################################################################ @@ -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")]