diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-10 14:20:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-10 14:20:58 -0300 |
commit | 02474d0a0181592ab0ce78cc5b536b76d23a4799 (patch) | |
tree | 14530ccedf0fc50e83fd25e2dbf15e43f07623d3 /mailimport | |
parent | 502981ebbf37de21383ed0c8c9637fe2d61b5c0a (diff) | |
download | mediapointer-dvb-s2-02474d0a0181592ab0ce78cc5b536b76d23a4799.tar.gz mediapointer-dvb-s2-02474d0a0181592ab0ce78cc5b536b76d23a4799.tar.bz2 |
Added better handling for errors at mailscript
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Now, it checks if author have signed its own patch. Also,
prints better error messages.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'mailimport')
-rwxr-xr-x | mailimport | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailimport b/mailimport index 554ed7eed..08a9ac34f 100755 --- a/mailimport +++ b/mailimport @@ -43,7 +43,7 @@ apply_patch () { patch -s -t -p1 --dry-run -l -N -d $pdir -i $next if [ "$?" != "0" ]; then $head $next - echo "*** ERROR" + echo "*** ERROR: Patch didn't applied well" exit fi fi @@ -55,8 +55,8 @@ apply_patch () { cont=0 $head $next >$TMP2 - if [ "`grep 'Bad formed author' $TMP2`" != "" ]; then - echo Patch bad formed. Please fix. + if [ "`grep '^Bad:' $TMP2`" != "" ]; then + echo "*** ERROR: Patch bad formed. Please fix." sleep 1 nano $next cont=1 |