From: Mark Hymers Date: Mon, 25 May 2009 18:16:13 +0000 (+0100) Subject: remove unneeded daklib.database import X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37de871ace4de601a04ba18e403db8d2a7c1d14e;p=dak remove unneeded daklib.database import Signed-off-by: Mark Hymers --- diff --git a/dak/update_db.py b/dak/update_db.py index 5fe6918a..e0a4b9bb 100755 --- a/dak/update_db.py +++ b/dak/update_db.py @@ -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 @@ -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")]