diff options
-rw-r--r-- | pym/portage.py | 5 |
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 = [] |