From d1e59ba51d47c4d650ad6d9234122c05bde04fb3 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Fri, 4 Mar 2011 12:38:36 +0000 Subject: [PATCH] bugfixes Signed-off-by: Torsten Werner --- dak/contents.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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): """ -- 2.39.5