changeset 1418:f2f1238d25e2

Actually stop after the first failed patch.
author Rob Landley <rob@landley.net>
date Sun, 24 Jul 2011 13:37:22 -0500
parents aabc07905de3
children 62b8b2936c6f
files sources/download_functions.sh
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/download_functions.sh	Sat Jul 23 21:58:24 2011 -0500
+++ b/sources/download_functions.sh	Sun Jul 24 13:37:22 2011 -0500
@@ -22,7 +22,10 @@
       (cd "${SRCTREE}/${PACKAGE}" &&
        patch -p1 -i "$i" &&
        sha1file "$i" >> "$SHA1FILE") ||
-        ([ -z "$ALLOW_PATCH_FAILURE" ] && dienow)
+        if [ -z "$ALLOW_PATCH_FAILURE" ]
+        then
+          dienow
+        fi
     fi
   done
 }