1 |
Author: fuzzyray |
2 |
Date: 2010-11-24 18:28:10 +0000 (Wed, 24 Nov 2010) |
3 |
New Revision: 869 |
4 |
|
5 |
Modified: |
6 |
trunk/gentoolkit/ChangeLog |
7 |
trunk/gentoolkit/bin/euse |
8 |
Log: |
9 |
Make euse prefix aware |
10 |
|
11 |
Modified: trunk/gentoolkit/ChangeLog |
12 |
=================================================================== |
13 |
--- trunk/gentoolkit/ChangeLog 2010-11-24 17:51:15 UTC (rev 868) |
14 |
+++ trunk/gentoolkit/ChangeLog 2010-11-24 18:28:10 UTC (rev 869) |
15 |
@@ -1,6 +1,6 @@ |
16 |
2010-11-24: Paul Varner <fuzzyray@g.o> |
17 |
* euse: Fix euse to look for portage configuration files in both the |
18 |
- old and new paths. bug 346519. |
19 |
+ old and new paths. bug 346519. Make euse work in prefix environments. |
20 |
|
21 |
2010-10-29: Tomáš Chvátal <scarabeus@g.o> |
22 |
* eshowkw: Add new module as drop-in replacement for eshowkw from |
23 |
|
24 |
Modified: trunk/gentoolkit/bin/euse |
25 |
=================================================================== |
26 |
--- trunk/gentoolkit/bin/euse 2010-11-24 17:51:15 UTC (rev 868) |
27 |
+++ trunk/gentoolkit/bin/euse 2010-11-24 18:28:10 UTC (rev 869) |
28 |
@@ -9,8 +9,9 @@ |
29 |
PROGRAM_NAME=euse |
30 |
VERSION="svn" |
31 |
|
32 |
-ETC="/etc" |
33 |
-USR_SHARE_PORTAGE="/usr/share/portage" |
34 |
+EPREFIX=${EPREFIX:-$(portageq envvar EPREFIX)} |
35 |
+ETC="${EPREFIX}/etc" |
36 |
+USR_SHARE_PORTAGE="${EPREFIX}/usr/share/portage" |
37 |
|
38 |
# define error function so it can be used immediately |
39 |
error() { |