]> err.no Git - dak/commitdiff
bugfixes
authorTorsten Werner <twerner@debian.org>
Fri, 4 Mar 2011 12:38:36 +0000 (12:38 +0000)
committerTorsten Werner <twerner@debian.org>
Fri, 4 Mar 2011 12:38:36 +0000 (12:38 +0000)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/contents.py

index e292ac91a9b806701897f960bdad8d3314c00431..99e9575d874d39ac0d4745b217ee529b2373037e 100755 (executable)
@@ -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):
     """