From: Zac Medico Date: Sun, 30 Oct 2011 00:25:42 +0000 (-0700) Subject: env_update: lstrip os.sep in join with eprefix X-Git-Tag: v2.2.0_alpha72~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31afcd8307f623e8a454ae5029b3599420f5440c;p=portage.git env_update: lstrip os.sep in join with eprefix --- diff --git a/pym/portage/util/env_update.py b/pym/portage/util/env_update.py index 143593264..7879ed9aa 100644 --- a/pym/portage/util/env_update.py +++ b/pym/portage/util/env_update.py @@ -51,7 +51,8 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None, target_eroot = portage.settings['EROOT'] else: eprefix = os.environ.get("__PORTAGE_TEST_EPREFIX", "") - target_eroot = os.path.join(target_root, eprefix) + target_eroot = os.path.join(target_root, + eprefix.lstrip(os.sep)) target_eroot = target_eroot.rstrip(os.sep) + os.sep if hasattr(portage, "db") and target_eroot in portage.db: vardbapi = portage.db[target_eroot]["vartree"].dbapi