From 9b0a793dfb971ebb3053553f13593dbfafa939bf Mon Sep 17 00:00:00 2001 From: Staroselskii Georgii Date: Fri, 29 Jul 2016 18:41:13 +0300 Subject: [PATCH] build.sh: fix for patchsets with same names in substages In that case (i.e. stage2/01-sys-tweaks and stage2/02-net-tweaks) a directory with a same name (00-pc) is getting created for both quilt patch sets. This might yield a situation when second patch set is not applied. The fix is to come up with a more sophisticated naming convention for intermediate patchset directory (which .pc symlinks to) and create separate directories for each patchset. --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index fe8214a..5b745e8 100755 --- a/build.sh +++ b/build.sh @@ -42,8 +42,9 @@ EOF rm -rf *-pc fi QUILT_PATCHES=${SUB_STAGE_DIR}/${i}-patches - mkdir -p ${i}-pc - ln -sf ${i}-pc .pc + SUB_STAGE_QUILT_PATCH_DIR="$(basename $SUB_STAGE_DIR)-pc" + mkdir -p $SUB_STAGE_QUILT_PATCH_DIR + ln -snf $SUB_STAGE_QUILT_PATCH_DIR .pc if [ -e ${SUB_STAGE_DIR}/${i}-patches/EDIT ]; then echo "Dropping into bash to edit patches..." bash