From: Zac Medico Date: Thu, 12 Oct 2006 10:49:27 +0000 (-0000) Subject: Fix the new env-update lib dirs logic to properly account for $ROOT. X-Git-Tag: v2.1.2~643 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb961efa13b7cf0856f4a7e87952f3abfe2244a3;p=portage.git Fix the new env-update lib dirs logic to properly account for $ROOT. svn path=/main/trunk/; revision=4664 --- diff --git a/pym/portage.py b/pym/portage.py index 240b3e487..71a582a6a 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -678,7 +678,7 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None): x = os.path.join(target_root, lib_dir.lstrip(os.sep)) try: newldpathtime = os.stat(x)[stat.ST_MTIME] - lib_dirs.add(normalize_path(os.path.sep + lib_dir)) + lib_dirs.add(normalize_path(x)) except OSError, oe: if oe.errno == errno.ENOENT: try: