diff options
-rw-r--r-- | quilt.changes | 9 | ||||
-rw-r--r-- | quilt/mail.in | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/quilt.changes b/quilt.changes index e56f759..322eb23 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,13 @@ ------------------------------------------------------------------- +Sun Nov 2 18:07:36 CET 2008 - agruen@suse.de + +- 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>.) + +------------------------------------------------------------------- Sun Nov 2 18:05:14 CET 2008 - agruen@suse.de - push command: Remove leftovers of the former interactive-option. 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" = - ] |