]> err.no Git - dak/commitdiff
add stupid hack to work around apt-pkg's config handling
authorMark Hymers <mhy@debian.org>
Tue, 16 Jun 2009 22:29:16 +0000 (22:29 +0000)
committerMark Hymers <mhy@debian.org>
Tue, 16 Jun 2009 22:29:16 +0000 (22:29 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/process_new.py

index 6cbbccff5090fb7f9fd9f39fb6f52c8232228cb3..a7da65c3c874434228fbd4588bb816009a6d41ad 100755 (executable)
@@ -497,7 +497,7 @@ def edit_note(note):
         end()
         sys.exit(0)
 
-    database.add_new_comment(Upload.pkg.changes["source"], Upload.pkg.changes["version"], newnote, utils.whoami(), Options["Trainee"])
+    database.add_new_comment(Upload.pkg.changes["source"], Upload.pkg.changes["version"], newnote, utils.whoami(), bool(Options["Trainee"]))
 
 ################################################################################
 
@@ -767,7 +767,7 @@ def init():
         try:
             Logger = Upload.Logger = logging.Logger(Cnf, "process-new")
         except CantOpenError, e:
-            Options["Trainee"] = True
+            Options["Trainee"] = "True"
 
     projectB = Upload.projectB