aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2010-11-24 18:28:10 +0000
committerfuzzyray <fuzzyray@gentoo.org>2010-11-24 18:28:10 +0000
commita1468f90c6c5c23577854a3d17f2f11ec05c87d8 (patch)
tree9c5f3d94c438a8bf717f5a72b74f0022b995175e
parentUpdate euse to look for portage config files in new as well as old paths. Bug... (diff)
downloadgentoolkit-a1468f90c6c5c23577854a3d17f2f11ec05c87d8.tar.gz
gentoolkit-a1468f90c6c5c23577854a3d17f2f11ec05c87d8.tar.bz2
gentoolkit-a1468f90c6c5c23577854a3d17f2f11ec05c87d8.zip
Make euse prefix aware
svn path=/trunk/gentoolkit/; revision=869
-rw-r--r--ChangeLog2
-rwxr-xr-xbin/euse5
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a685a55..5ac6727 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
2010-11-24: Paul Varner <fuzzyray@gentoo.org>
* euse: Fix euse to look for portage configuration files in both the
- old and new paths. bug 346519.
+ old and new paths. bug 346519. Make euse work in prefix environments.
2010-10-29: Tomáš Chvátal <scarabeus@gentoo.org>
* eshowkw: Add new module as drop-in replacement for eshowkw from
diff --git a/bin/euse b/bin/euse
index 35b3d45..297d4f6 100755
--- a/bin/euse
+++ b/bin/euse
@@ -9,8 +9,9 @@
PROGRAM_NAME=euse
VERSION="svn"
-ETC="/etc"
-USR_SHARE_PORTAGE="/usr/share/portage"
+EPREFIX=${EPREFIX:-$(portageq envvar EPREFIX)}
+ETC="${EPREFIX}/etc"
+USR_SHARE_PORTAGE="${EPREFIX}/usr/share/portage"
# define error function so it can be used immediately
error() {