]> err.no Git - dak/commitdiff
pn
authorJoerg Jaspert <joerg@debian.org>
Wed, 15 Apr 2009 17:48:58 +0000 (19:48 +0200)
committerJoerg Jaspert <joerg@debian.org>
Wed, 15 Apr 2009 17:48:58 +0000 (19:48 +0200)
do not try to close the log in trainee mode

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/process_new.py

index 7b02a8d9f4e01ba3218a3b4334aae0fb88204877..8f3ad0cfe022f2862a9a7f31a52676bc4b080370 100755 (executable)
@@ -983,7 +983,7 @@ def end():
         sys.stderr.write("Accepted %d package %s, %s.\n" % (accept_count, sets, utils.size_type(int(accept_bytes))))
         Logger.log(["total",accept_count,accept_bytes])
 
-    if not Options["No-Action"]:
+    if not Options["No-Action"] and not Options["Trainee"]::
         Logger.close()
 
 ################################################################################