summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmailimport7
1 files changed, 6 insertions, 1 deletions
diff --git a/mailimport b/mailimport
index 08a9ac34f..f1a64af35 100755
--- a/mailimport
+++ b/mailimport
@@ -10,6 +10,7 @@
#2) hg mailqueue. It is easier to manage patches using mq, allowing to work with
# the patches before applying to the tree.
+#exitonerror=1
head=v4l/scripts/hghead.pl
if [ "$1" == "" ]; then
@@ -44,7 +45,11 @@ apply_patch () {
if [ "$?" != "0" ]; then
$head $next
echo "*** ERROR: Patch didn't applied well"
- exit
+ if [ "$exitonerror" != "" ]; then
+ exit
+ else
+ return
+ fi
fi
fi