[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] pn



do not try to close the log in trainee mode

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 dak/process_new.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dak/process_new.py b/dak/process_new.py
index 7b02a8d..8f3ad0c 100755
--- a/dak/process_new.py
+++ b/dak/process_new.py
@@ -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()
 
 ################################################################################
-- 
1.5.6.5


Reply to: