]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- /usr/lib/sendmail as sendmail path
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 21 Jan 2010 16:22:35 +0000 (16:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/mailer.py -> 1.22

PLD_Builder/mailer.py

index 59105178003dd0e5523363a7315b1cc9a420d291..e0b3ae601567a063e2025ac4f519d84ab72ee409 100644 (file)
@@ -73,10 +73,11 @@ class Message:
         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)
This page took 0.122497 seconds and 4 git commands to generate.