Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15178 - main/branches/prefix/pym/portage
Date: Fri, 08 Jan 2010 12:09:27
Message-Id: E1NTDee-0007aP-AW@stork.gentoo.org
1 Author: grobian
2 Date: 2010-01-08 12:09:23 +0000 (Fri, 08 Jan 2010)
3 New Revision: 15178
4
5 Modified:
6 main/branches/prefix/pym/portage/__init__.py
7 Log:
8 make sure we don't run abspath on the empty string, such that we get the current working directory instead of / as we want, fixes problems with offset-less installations (EPREFIX='')
9
10 Modified: main/branches/prefix/pym/portage/__init__.py
11 ===================================================================
12 --- main/branches/prefix/pym/portage/__init__.py 2010-01-08 12:00:30 UTC (rev 15177)
13 +++ main/branches/prefix/pym/portage/__init__.py 2010-01-08 12:09:23 UTC (rev 15178)
14 @@ -1682,7 +1682,7 @@
15 raise portage.exception.DirectoryNotFound(var)
16
17 if config_root is None:
18 - config_root = EPREFIX
19 + config_root = EPREFIX + os.path.sep
20
21 config_root = normalize_path(os.path.abspath(
22 config_root)).rstrip(os.path.sep) + os.path.sep