From: Torsten Werner Date: Fri, 4 Mar 2011 12:38:36 +0000 (+0000) Subject: bugfixes X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d1e59ba51d47c4d650ad6d9234122c05bde04fb3;p=dak.git bugfixes Signed-off-by: Torsten Werner --- diff --git a/dak/contents.py b/dak/contents.py index e292ac91..99e9575d 100755 --- a/dak/contents.py +++ b/dak/contents.py @@ -632,7 +632,7 @@ def scan_all(limit): result = ContentsScanner.scan_all(limit) processed = '%(processed)d packages processed' % result remaining = '%(remaining)d packages remaining' % result - Logger([processed, remaining]) + Logger.log([processed, remaining]) ################################################################################ @@ -673,16 +673,18 @@ def main(): stream = sys.stderr ) global Logger - Logger = daklog.Loggor(cnf.Conf, 'contents') + Logger = daklog.Logger(cnf.Cnf, 'contents') limit = None if cnf.has_key("%s::%s" % (options_prefix,"Limit")): limit = cnf["%s::%s" % (options_prefix,"Limit")] + if args[0] == 'bootstrap_bin': scan_all(limit) - return + else: + commands[args[0]](Contents()) - commands[args[0]](Contents()) + Logger.close() def which_suites(session): """