summaryrefslogtreecommitdiffstats
path: root/bin/phase-helpers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/phase-helpers.sh')
-rw-r--r--bin/phase-helpers.sh4
1 files changed, 2 insertions, 2 deletions
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