Gentoo Archives: gentoo-commits

From: Ulrich Mueller <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/eselect:master commit in: /, modules/
Date: Fri, 22 Feb 2013 22:24:58
Message-Id: 1361572074.08510d6b16fac8724371c87e788327c2a8418bac.ulm@gentoo
1 commit: 08510d6b16fac8724371c87e788327c2a8418bac
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 22 22:27:54 2013 +0000
4 Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 22 22:27:54 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=08510d6b
7
8 Honour PORTAGE_CONFIGROOT in profile module, bug 453006.
9
10 * modules/profile.eselect (get_symlink_location):
11 Create profile symlink below PORTAGE_CONFIGROOT, bug 453006.
12
13 ---
14 ChangeLog | 5 +++++
15 modules/profile.eselect | 5 +++--
16 2 files changed, 8 insertions(+), 2 deletions(-)
17
18 diff --git a/ChangeLog b/ChangeLog
19 index c24a5fb..e6ee7e9 100644
20 --- a/ChangeLog
21 +++ b/ChangeLog
22 @@ -1,3 +1,8 @@
23 +2013-02-22 Ulrich Müller <ulm@g.o>
24 +
25 + * modules/profile.eselect (get_symlink_location):
26 + Create profile symlink below PORTAGE_CONFIGROOT, bug 453006.
27 +
28 2013-01-13 Ulrich Müller <ulm@g.o>
29
30 * bin/eselect.in (ESELECT_STDERR): Save stderr file descriptor.
31
32 diff --git a/modules/profile.eselect b/modules/profile.eselect
33 index 5f06130..a91a45f 100644
34 --- a/modules/profile.eselect
35 +++ b/modules/profile.eselect
36 @@ -12,8 +12,9 @@ DEFAULT_REPO="gentoo"
37
38 # get location of make.profile symlink
39 get_symlink_location() {
40 - local oldloc=${EROOT%/}/etc/make.profile
41 - local newloc=${EROOT%/}/etc/portage/make.profile
42 + local root=${PORTAGE_CONFIGROOT-${EROOT}}
43 + local oldloc=${root%/}/etc/make.profile
44 + local newloc=${root%/}/etc/portage/make.profile
45
46 MAKE_PROFILE=${newloc}
47 if [[ -e ${oldloc} ]]; then