apply-patches.sh: avoid reversed/already applied patches
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 17 Sep 2013 18:45:53 +0000 (15:45 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 17 Sep 2013 21:07:34 +0000 (23:07 +0200)
Disable reversed/already applied patches fallout from commit
5871b791995ebe295db7dca608afe3f293ce8953
Reverse patches are bad, they may unfix things with version bumps and
just sneak under the radar with pure batch mode.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
support/scripts/apply-patches.sh

index 1ebaea990f09aa1681bb937a2134d755b3a744e4..ff72b452409441972cc2bbb34c0e534a6201bdd2 100755 (executable)
@@ -84,7 +84,7 @@ function apply_patch {
        exit 1
     fi
     echo $patch >> ${builddir}/.applied_patches_list
-    ${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t
+    ${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t -N
     if [ $? != 0 ] ; then
         echo "Patch failed!  Please fix ${patch}!"
        exit 1