Fix the new env-update lib dirs logic to properly account for $ROOT.
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Oct 2006 10:49:27 +0000 (10:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Oct 2006 10:49:27 +0000 (10:49 -0000)
svn path=/main/trunk/; revision=4664

pym/portage.py

index 240b3e487a2eb85d94b9f3d3bc08f93304a025ba..71a582a6acbdfe2fb60ac4d603e840d1664c6f3a 100644 (file)
@@ -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: