From 99f6457e5394fa17ec11f3d8caee0a3db115bfeb Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 18 Sep 2018 15:13:23 +0200 Subject: [PATCH] testing: Only attempt to copy patches if there are any --- testing/scripts/build-rootimage | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2