Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r9549 - main/branches/2.1.2/pym
Date: Fri, 28 Mar 2008 11:48:04
Message-Id: E1JfD3w-0006e0-Db@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-03-28 11:47:59 +0000 (Fri, 28 Mar 2008)
3 New Revision: 9549
4
5 Modified:
6 main/branches/2.1.2/pym/portage.py
7 Log:
8 As requested by wolf31o2, use the ROOT setting from make.conf as long as
9 it's not overridden by the calling environment. (trunk r9439)
10
11
12 Modified: main/branches/2.1.2/pym/portage.py
13 ===================================================================
14 --- main/branches/2.1.2/pym/portage.py 2008-03-28 11:46:29 UTC (rev 9548)
15 +++ main/branches/2.1.2/pym/portage.py 2008-03-28 11:47:59 UTC (rev 9549)
16 @@ -1392,13 +1392,8 @@
17 self.mygcfg.pop(k, None)
18
19 # Allow ROOT setting to come from make.conf if it's not overridden
20 - # by the constructor argument (from the calling environment). As a
21 - # special exception for a very common use case, config_root == "/"
22 - # implies that ROOT in make.conf should be ignored. That way, the
23 - # user can chroot into $ROOT and the ROOT setting in make.conf will
24 - # be automatically ignored (unless config_root is other than "/").
25 - if config_root != "/" and \
26 - target_root is None and "ROOT" in self.mygcfg:
27 + # by the constructor argument (from the calling environment).
28 + if target_root is None and "ROOT" in self.mygcfg:
29 target_root = self.mygcfg["ROOT"]
30
31 self.configlist.append(self.mygcfg)
32
33 --
34 gentoo-commits@l.g.o mailing list