From: fuzzyray Date: Wed, 24 Nov 2010 18:28:10 +0000 (-0000) Subject: Make euse prefix aware X-Git-Tag: gentoolkit-0.3.0~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1468f90c6c5c23577854a3d17f2f11ec05c87d8;p=gentoolkit.git Make euse prefix aware svn path=/trunk/gentoolkit/; revision=869 --- diff --git a/ChangeLog b/ChangeLog index a685a55..5ac6727 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ 2010-11-24: Paul Varner * 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 * 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() {