Author: glen Date: Thu Jan 21 16:22:40 2010 GMT Module: pld-builder.new Tag: HEAD ---- Log message: - /usr/lib/sendmail as sendmail path
---- Files affected: pld-builder.new/PLD_Builder: mailer.py (1.21 -> 1.22) ---- Diffs: ================================================================ Index: pld-builder.new/PLD_Builder/mailer.py diff -u pld-builder.new/PLD_Builder/mailer.py:1.21 pld-builder.new/PLD_Builder/mailer.py:1.22 --- pld-builder.new/PLD_Builder/mailer.py:1.21 Mon Dec 24 10:56:04 2007 +++ pld-builder.new/PLD_Builder/mailer.py Thu Jan 21 17:22:35 2010 @@ -73,10 +73,11 @@ util.sendfile(self.body, f) def send(self): - if not os.path.exists("/usr/sbin/sendmail"): - log.alert("/usr/sbin/sendmail doesn't exists: can't send email") + if not os.path.exists("/usr/lib/sendmail"): + # TODO: dump to file? + log.alert("/usr/lib/sendmail doesn't exist: Can't send email") return False - send_sendmail = "/usr/sbin/sendmail -i -t -f %s" % config.admin_email + send_sendmail = "/usr/lib/sendmail -i -t -f %s" % config.admin_email f = os.popen(send_sendmail, "w") try: self.write_to(f) ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/mailer.py?r1=1.21&r2=1.22&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit