projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a86b6
)
Use configdict["env"].clear() instead of manual deletion because the result is the...
author
Zac Medico
<zmedico@gentoo.org>
Wed, 13 Sep 2006 20:50:28 +0000
(20:50 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 13 Sep 2006 20:50:28 +0000
(20:50 -0000)
svn path=/main/trunk/; revision=4442
pym/portage.py
patch
|
blob
|
history
diff --git
a/pym/portage.py
b/pym/portage.py
index 821edb81f3b05e5071ff50be72e31825daf9e7d0..3d8acf3ae47f06af1e40beffb98e049a3a946c97 100644
(file)
--- 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 = []