X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcontents.py;h=519ebba846bbb50e734f36ae2fd1556589033dec;hb=d878ff767ef1d4579cdb5e0b9bc3890e27fffc18;hp=2e1d05dcfad4d2b9145b4652cce7a265b5451430;hpb=0938f0e125c648727ee7454dfe31a668262752cb;p=dak.git diff --git a/dak/contents.py b/dak/contents.py index 2e1d05dc..519ebba8 100644 --- a/dak/contents.py +++ b/dak/contents.py @@ -42,8 +42,8 @@ import math import gzip import apt_pkg from daklib import utils -from daklib.Config import Config -from daklib.DBConn import DBConn +from daklib.config import Config +from daklib.dbconn import DBConn ################################################################################ def usage (exit_code=0): @@ -83,7 +83,6 @@ OPTIONS options_prefix = "Contents" options_prefix = "%s::Opitons" % options_prefix -header_prefix = "%s::Header" % options_prefix log = logging.getLogger() @@ -163,12 +162,14 @@ class Contents(object): h = open(os.path.join( Config()["Dir::Templates"], Config()["Contents::Header"] ), "r") self.header = h.read() + print( "header: %s" % self.header ) h.close() except: log.error( "error openeing header file: %d\n%s" % (Config()["Contents::Header"], traceback.format_exc() )) self.header = False else: + print( "no header" ) self.header = False return self.header @@ -269,7 +270,6 @@ class Contents(object): # Get our suites, and the architectures for suite in [i.lower() for i in suites]: suite_id = DBConn().get_suite_id(suite) - arch_list = self._arches(cursor, suite_id) arch_all_id = DBConn().get_architecture_id("all")