]> git.decadent.org.uk Git - dak.git/commitdiff
process-new: Fix BCC and X-Katie handling
authorFrank Lichtenheld <djpig@debian.org>
Tue, 27 Oct 2009 09:57:05 +0000 (09:57 +0000)
committerFrank Lichtenheld <djpig@debian.org>
Tue, 27 Oct 2009 09:57:05 +0000 (09:57 +0000)
Signed-off-by: Frank Lichtenheld <djpig@debian.org>
dak/process_new.py

index 1efacb3f5376f016d0859f38a7eee8555caabed9..7e8dd679efc55e160aea97d652ca1b5f8b9444b0 100755 (executable)
@@ -973,6 +973,14 @@ def do_pkg(changes_file, session):
     u = Upload()
     u.pkg.load_dot_dak(changes_file)
     u.update_subst()
+
+    cnf = Config()
+    bcc = "X-DAK: dak process-new\nX-Katie: lisa $Revision: 1.31 $"
+    if cnf.has_key("Dinstall::Bcc"):
+        u.Subst["__BCC__"] = bcc + "\nBcc: %s" % (cnf["Dinstall::Bcc"])
+    else:
+        u.Subst["__BCC__"] = bcc
+
     files = u.pkg.files
 
     try:
@@ -1110,11 +1118,6 @@ def main():
 
     # Kill me now? **FIXME**
     cnf["Dinstall::Options::No-Mail"] = ""
-#    bcc = "X-DAK: dak process-new\nX-Katie: lisa $Revision: 1.31 $"
-#    if cnf.has_key("Dinstall::Bcc"):
-#        Upload.Subst["__BCC__"] = bcc + "\nBcc: %s" % (cnf["Dinstall::Bcc"])
-#    else:
-#        Upload.Subst["__BCC__"] = bcc
 
 #     commentsdir = cnf.get("Process-New::Options::Comments-Dir","")
 #     if commentsdir: