Use config.environ() instead of config.items() when spawning FETCHCOMMAND.
authorZac Medico <zmedico@gentoo.org>
Mon, 15 Feb 2010 06:39:58 +0000 (06:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 15 Feb 2010 06:39:58 +0000 (06:39 -0000)
svn path=/main/trunk/; revision=15355

pym/portage/__init__.py

index 2c2307bb6dfd2a24f588d2f027d2e656c422d7d2..bd32e7f3ed51e6e0ef64a59bb8dd4eb0ddd91d39 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