X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fupdate_db.py;h=e9dfa9a7a12c0401ab9331f772497c6502090227;hb=cd64b76b3ae740ffa0f2c08302028ba24c663a3d;hp=4d08721f54cfc20c74bc07a2efce816a27b18748;hpb=56477fb20a2e3b97a4f47d2c18d137b36f083584;p=dak.git diff --git a/dak/update_db.py b/dak/update_db.py index 4d08721f..e9dfa9a7 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 = 10 +required_database_schema = 19 ################################################################################ @@ -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")]