diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2008-11-02 17:08:19 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2008-11-02 17:08:19 +0000 |
commit | c7d2c49ad9e5be89e8d185cf8f80489bf82b0ed8 (patch) | |
tree | 988d318959d2c668a288f22434906449cec8b3ab /quilt | |
parent | 6afb9a8acc67e46daa6485161a53e217ce399b5a (diff) | |
download | quilt-c7d2c49ad9e5be89e8d185cf8f80489bf82b0ed8.tar.gz |
- 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. (From Bernhard Walle <bwalle@suse.de>.)
Diffstat (limited to 'quilt')
-rw-r--r-- | quilt/mail.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quilt/mail.in b/quilt/mail.in index 62cf731..08d8d72 100644 --- 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" = - ] |