From a1468f90c6c5c23577854a3d17f2f11ec05c87d8 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Wed, 24 Nov 2010 18:28:10 +0000 Subject: [PATCH] Make euse prefix aware svn path=/trunk/gentoolkit/; revision=869 --- ChangeLog | 2 +- bin/euse | 5 +++-- 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 * 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() { -- 2.26.2