aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-08-15 22:45:05 -0400
committerMike Frysinger <vapier@gentoo.org>2010-08-15 22:45:05 -0400
commit27aff59ae215298367a2dc8dc44b49554b5035b0 (patch)
tree058c29778d8cfb3cd7871fe43c54bd8bdcebbc7e /data/sandbox.bashrc
parentlibsandbox: avoid passing same buffer to erealpath (diff)
downloadsandbox-27aff59ae215298367a2dc8dc44b49554b5035b0.tar.gz
sandbox-27aff59ae215298367a2dc8dc44b49554b5035b0.tar.bz2
sandbox-27aff59ae215298367a2dc8dc44b49554b5035b0.zip
sandbox.bashrc: update portage builddir search
Portage builds packages in $CAT/$PF now rather than $PF, so update the local env search code to handle that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'data/sandbox.bashrc')
-rw-r--r--data/sandbox.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/sandbox.bashrc b/data/sandbox.bashrc
index dfda14d..6ca695d 100644
--- a/data/sandbox.bashrc
+++ b/data/sandbox.bashrc
@@ -67,7 +67,7 @@ if [[ ${SANDBOX_INTRACTV} == "1" && -t 1 ]] || [[ ${__SANDBOX_TESTING} == "yes"
sbs_pdir=${sbs_pdir}/portage/
if [[ ${PWD:0:${#sbs_pdir}} == "${sbs_pdir}" ]] ; then
- sbs_bdir=$(echo ${PWD:${#sbs_pdir}} | cut -d/ -f1)
+ sbs_bdir=$(echo ${PWD:${#sbs_pdir}} | cut -d/ -f1,2)
sbs_tmpenvfile=${sbs_pdir}${sbs_bdir}/temp/environment
if [[ -e ${sbs_tmpenvfile} ]] ; then
echo "Found environment at ${sbs_tmpenvfile}"