From e72d8353f7a9493e0508c367e416423b52ea22ce Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Thu, 18 Oct 2012 00:41:38 +0200 Subject: Make keepdir() compatible with subslots. --- bin/phase-helpers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 67d09a462..5055060f7 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -150,7 +150,7 @@ keepdir() { fi if [ "$1" == "-R" ] || [ "$1" == "-r" ]; then shift - find "$@" -type d -printf "${ED}%p/.keep_${CATEGORY}_${PN}-${SLOT}\n" \ + find "$@" -type d -printf "${ED}%p/.keep_${CATEGORY}_${PN}-${SLOT%/*}\n" \ | tr "\n" "\0" | \ while read -r -d $'\0' ; do >> "$REPLY" || \ @@ -158,7 +158,7 @@ keepdir() { done else for x in "$@"; do - >> "${ED}${x}/.keep_${CATEGORY}_${PN}-${SLOT}" || \ + >> "${ED}${x}/.keep_${CATEGORY}_${PN}-${SLOT%/*}" || \ die "Failed to create .keep in ${ED}${x}" done fi -- cgit v1.2.3-1-g7c22