dupload trying to use sendmail if sendmail not exists

Bug #1504088 reported by sv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dupload (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 14.04.1 LTS
Release: 14.04

dupload:
  Installed: 2.7.0ubuntu1

If sendmail not installed on machine, dupload should not trying to use it to send mail.

But, dupload returns error:

 debrelease -c
 dupload warning: mail options disabled, can't run `/usr/sbin/sendmail': No such file or directory
 dupload note: no announcement will be sent.
 Checking signatures before upload......signatures are ok
 Uploading (scpb) to dist.local:/repo/branch/testing/mini-dinstall/incoming/
 [ job dupload-bug_9999-9-testing_amd64 from dupload-bug_9999-9-testing_amd64.changes
   announce (dupload-bug_9999-9-testing_amd64.changes) to will be sent
  dupload-bug_9999-9-testing.tar.gz, size ok, md5sum ok, sha1sum ok, sha256sum ok
  dupload-bug_9999-9-testing_amd64.deb, size ok, md5sum ok, sha1sum ok, sha256sum ok
  dupload-bug_9999-9-testing.dsc, size ok, md5sum ok, sha1sum ok, sha256sum ok
  dupload-bug_9999-9-testing_amd64.changes ok ]
 Uploading (scp) to branch-testing (dist.local)
 [ Uploading job dupload-bug_9999-9-testing_amd64
  dupload-bug_9999-9-testing.tar.gz 1300.9 kB, ok
  dupload-bug_9999-9-testing_amd64.deb 67.7 kB, ok
  dupload-bug_9999-9-testing.dsc 1.3 kB, ok
  dupload-bug_9999-9-testing_amd64.changes 5.0 kB, ok
 Warning: Permanently added 'dist.local' to the list of known hosts.
 announcing to
 dupload fatal error: Can't pipe to /usr/sbin/sendmail No such file or directory
  at /usr/bin/dupload line 798

It seems error when "unless (-x $sendmail)", sets $nomail = 1, but after it rewrites by "$nomail = $::opt_nomail || 0;"

See:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/dupload/trusty/view/head:/dupload#L91
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/dupload/trusty/view/head:/dupload#L123

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.