Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] EROOT changing ?
Date: Mon, 08 Nov 2010 07:41:39
Message-Id: 20101108074053.GA14638@gentoo.org
In Reply to: Re: [gentoo-alt] EROOT changing ? by Alan Hourihane
1 On 07-11-2010 23:16:08 +0000, Alan Hourihane wrote:
2 > > Ok, would this work for you?
3 > >
4 > > if "EPREFIX" in os.environ and os.environ["EPREFIX"] != "":
5 >
6 > Couldn't this just be...
7 >
8 > if os.environ["EPREFIX"] != "":
9
10 In the original code, this would give a keyerror, if EPREFIX was/is not
11 exported. It may be that Portage now always exports it itself, in which
12 case the EPREFIX is always expanded nowadays. Needs investigation.
13
14
15 --
16 Fabian Groffen
17 Gentoo on a different level