Use config.environ() instead of config.items() when spawning FETCHCOMMAND.
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:20:05 +0000 (20:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:20:05 +0000 (20:20 -0000)
(trunk r15355)

svn path=/main/branches/2.1.7/; revision=15582

pym/portage/__init__.py

index 1afb46ba095503b665b22400d52e5eb708d4c8e2..f753670ccc1ff4bb268acb715715a0197086ad22 100644 (file)
@@ -4249,7 +4249,7 @@ def _spawn_fetch(settings, args, **kwargs):
                if args[0] != BASH_BINARY:
                        args = [BASH_BINARY, "-c", "exec \"$@\"", args[0]] + args
 
-       rval = spawn_func(args, env=dict(iter(settings.items())), **kwargs)
+       rval = spawn_func(args, env=settings.environ(), **kwargs)
 
        return rval