apply-patches.sh: directories are no more considered as overlays
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 14 Mar 2012 15:33:55 +0000 (16:33 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 20 Mar 2012 22:52:29 +0000 (23:52 +0100)
When a directory is found in patchdir, it is skipped.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Tested-by: Ludovic Desroches <ludovic.desroches@atmel.com>
with an armadeus_apf9328_defconfig build
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
support/scripts/apply-patches.sh

index c741a6320ca751fc4357d63ef4a0f2c86b370007..3d655f144a9bea2cf30a7cd95bed2c0c7550c86c 100755 (executable)
@@ -30,10 +30,7 @@ for i in `cd ${patchdir}; ls -d ${patchpattern} 2> /dev/null` ; do
     apply="patch -g0 -p1 -E -d"
     uncomp_parm=""
     if [ -d "${patchdir}/$i" ] ; then
-       type="directory overlay"
-       uncomp="tar cf - --exclude=.svn --no-anchored -C"
-       uncomp_parm="."
-       apply="tar xvf - -C"
+       echo "${patchdir}/$i skipped"
     else case "$i" in
        *.gz)
        type="gzip"; uncomp="gunzip -dc"; ;;