]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- fixed the xml sending
authorMariusz Mazur <mmazur@pld-linux.org>
Wed, 14 Jan 2004 20:37:12 +0000 (20:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/report.py -> 1.22

PLD_Builder/report.py

index 05e2a53981c8665f1c9043025a6b39331011b355..fddaca71ca67a1b3438668544f44b6efde3843c4 100644 (file)
@@ -1,4 +1,5 @@
 import string
+import path
 
 import ftp
 import stopwatch
@@ -101,6 +102,10 @@ def send_cia_report(r, is_src = False):
   m.set_header("X-mailer", "$Id$")
   m.set_header("X-builder", "PLD")
 
+  # get header of xml message from file
+  f = open(path.root + 'PLD_Builder/cia-head.xml')
+  m.write(f.read())
+  f.close()
 
   # write in iteration list and status of all processed files
   for b in r.batches:
@@ -112,6 +117,10 @@ def send_cia_report(r, is_src = False):
            m.write('<failed/>\n')
     m.write('</package>\n')
 
+  # get footer of xml message from file
+  f.open(path.root + 'PLD_Builder/cia-foot.xml')
+  m.write(f.read())
+  f.close()
            
   # send the e-mail
   m.send()
This page took 0.084869 seconds and 4 git commands to generate.