summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-13 20:50:28 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-13 20:50:28 +0000
commit7ff6cef4e4c0f3532471a60fa5deb3d7dcdd8a53 (patch)
tree02e4deab829c7552458d9a34b9e2ce350e7c29cb
parenta2a86b6796097c809842556d44447973fd9c27df (diff)
downloadportage-7ff6cef4e4c0f3532471a60fa5deb3d7dcdd8a53.tar.gz
portage-7ff6cef4e4c0f3532471a60fa5deb3d7dcdd8a53.tar.bz2
portage-7ff6cef4e4c0f3532471a60fa5deb3d7dcdd8a53.zip
Use configdict["env"].clear() instead of manual deletion because the result is the same and it's much more efficient.
svn path=/main/trunk/; revision=4442
-rw-r--r--pym/portage.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 821edb81f..3d8acf3ae 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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 = []