From: Tobias Brunner Date: Tue, 18 Sep 2018 13:13:23 +0000 (+0200) Subject: testing: Only attempt to copy patches if there are any X-Git-Tag: 5.7.2dr4~18^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f6457e5394fa17ec11f3d8caee0a3db115bfeb;p=thirdparty%2Fstrongswan.git testing: Only attempt to copy patches if there are any --- diff --git a/testing/scripts/build-rootimage b/testing/scripts/build-rootimage index a84104a901..c6c41ada39 100755 --- a/testing/scripts/build-rootimage +++ b/testing/scripts/build-rootimage @@ -55,8 +55,11 @@ do_on_exit umount $LOOPDIR/root/shared echo "Installing software from source" RECPDIR=$DIR/recipes +if [ -d "$RECPDIR/patches" ] +then + execute "cp -r $RECPDIR/patches $LOOPDIR/root/shared/compile" 0 +fi RECIPES=`ls $RECPDIR/*.mk | xargs -n1 basename` -execute "cp -r $RECPDIR/patches $LOOPDIR/root/shared/compile" 0 for r in $RECIPES do cp $RECPDIR/$r ${LOOPDIR}/root/shared/compile