]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- send_report function simplification (not tested, if does not work just
authorwrobell <wrobell@pld-linux.org>
Tue, 26 Aug 2003 02:20:15 +0000 (02:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  call me :-|, then kill... :-)
- message for malekith: o l v i t h

Changed files:
    PLD_Builder/report.py -> 1.7

PLD_Builder/report.py

index c0bf9f5deab432714819d61f32c19c0302a70162..4ef37141ec0644957c150ef9d51c8e04490d94a5 100644 (file)
@@ -50,14 +50,10 @@ def info_from_log(b, target):
         target.write(l)
   
 def send_report(r, is_src = False):
-  def names(l): return map(lambda (b): b.spec, l)
-  s_failed = filter(lambda (x): x.build_failed, r.batches)
-  s_ok = filter(lambda (x): not x.build_failed, r.batches)
-  subject = ""
-  if s_failed != []:
-    subject += " ERRORS: " + string.join(names(s_failed))
-  if s_ok != []:
-    subject += " OK: " + string.join(names(s_ok))
+  subject = 'ERRORS: %s OK: %s' % ( \
+    ' '.join([b.spec for b in r.batches if b.build_failed]), \
+    ' '.join([b.spec for b in r.batches if not b.build_failed]) \
+  )
   
   m = mailer.Message()
   m.set_headers(to = r.requester_email,
This page took 0.110194 seconds and 4 git commands to generate.