Use configdict["env"].clear() instead of manual deletion because the result is the...
authorZac Medico <zmedico@gentoo.org>
Wed, 13 Sep 2006 20:50:28 +0000 (20:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 13 Sep 2006 20:50:28 +0000 (20:50 -0000)
svn path=/main/trunk/; revision=4442

pym/portage.py

index 821edb81f3b05e5071ff50be72e31825daf9e7d0..3d8acf3ae47f06af1e40beffb98e049a3a946c97 100644 (file)
@@ -1349,10 +1349,7 @@ class config:
 
        def reset(self,keeping_pkg=0,use_cache=1):
                "reset environment to original settings"
-               for x in self.configlist[-1].keys():
-                       if x not in self.backupenv.keys():
-                               del self.configlist[-1][x]
-
+               self.configdict["env"].clear()
                self.configdict["env"].update(self.backupenv)
 
                self.modifiedkeys = []