Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
quilt
quilt-improve-formail-error.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File quilt-improve-formail-error.diff of Package quilt
From: Bernhard Walle <bwalle@suse.de> Subject: [PATCH] Check for 'formail' in 'quilt mail' To allow using 'procmail' (which contains 'formail') as weak dependency in package managers, explicitely check for the 'formail' binary when invoking 'quilt mail' so that the user gets a clear error message when 'formail' is missing and knows what to do. Signed-off-by: Bernhard Walle <bwalle@suse.de> --- quilt/mail.in | 7 +++++++ 1 file changed, 7 insertions(+) --- a/quilt/mail.in +++ b/quilt/mail.in @@ -232,6 +232,13 @@ then usage fi +# check if formail is installed before doing anything +if ! type formail &> /dev/null +then + echo "You have to install 'formail' to use 'quilt mail'" >&2 + exit 1 +fi + if [ $# -ge 1 ] then if [ "$1" = - ]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor