Relies on mail command without package dependency

Bug #1795762 reported by evilhamsterman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubumirror (Ubuntu)
New
Undecided
Unassigned

Bug Description

The various scripts use the mail -s command to send mail in the event of failure. For example

if [ $? -ne 0 ]; then
    ( echo "Archive pool sync failed. Please check logs."; \
        egrep '^write failed|@ERROR' $LOGFILE ) | mail -s "Ubuntu archive sync failed" $EMAIL
    echo "$(date -R): Archive pool sync failed."
    exit 1
fi

However the package only depends on the existence of an MTA which generally only come with the sendmail command, the mail command comes from the mailutils package.

The ubumirror package should either depend on the mailutils package or switch to using sendmail instead of mail.

Tags: packaging
tags: added: packaging
Revision history for this message
evilhamsterman (evilhamsterman) wrote :

FWIW the bsg-mailx package also supplies a compatible mail command and pulls in far fewer dependencies.

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.