env_update: fix breakage in last commit
authorZac Medico <zmedico@gentoo.org>
Mon, 29 Aug 2011 15:57:55 +0000 (08:57 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 29 Aug 2011 15:57:55 +0000 (08:57 -0700)
pym/portage/util/env_update.py

index d47c69e1ca29b04d56075ffac830b969281df500..c670ded94626ef7e9e79b3db1217f7818e7ec17d 100644 (file)
@@ -50,7 +50,7 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None,
        else:
                settings = env
 
-       eprefix = env.get("EPREFIX", "")
+       eprefix = settings.get("EPREFIX", "")
        eprefix_lstrip = eprefix.lstrip(os.sep)
        envd_dir = os.path.join(target_root, eprefix_lstrip, "etc", "env.d")
        ensure_dirs(envd_dir, mode=0o755)