From: Fabian Groffen Date: Fri, 8 Jan 2010 12:09:23 +0000 (-0000) Subject: make sure we don't run abspath on the empty string, such that we get the current... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=eb86b1a4cdac0528c2fb7ab5e9cfd20589e6d0a1;p=portage.git 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='') svn path=/main/branches/prefix/; revision=15178 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 5603e52ee..79ebc1f7a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -1682,7 +1682,7 @@ class config(object): raise portage.exception.DirectoryNotFound(var) if config_root is None: - config_root = EPREFIX + config_root = EPREFIX + os.path.sep config_root = normalize_path(os.path.abspath( config_root)).rstrip(os.path.sep) + os.path.sep