diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-04-14 06:30:52 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-04-14 06:30:52 +0000 |
commit | 86e08bdaf036b7b455514b3b6cde47523e9759f5 (patch) | |
tree | 050a51442fe0da782b7b856006e6fa0f3fda838e /pym/portage.py | |
parent | 0241a10d9fd597ff534446d82619fc42b2880a36 (diff) | |
download | portage-86e08bdaf036b7b455514b3b6cde47523e9759f5.tar.gz portage-86e08bdaf036b7b455514b3b6cde47523e9759f5.tar.bz2 portage-86e08bdaf036b7b455514b3b6cde47523e9759f5.zip |
Add an initial_items parameter to the LazyItemsDict constructor in order to facilitate integration with existing dict based code.
svn path=/main/trunk/; revision=3143
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pym/portage.py b/pym/portage.py index 4f8c9423c..547085c24 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1414,14 +1414,8 @@ class config: global db, root self._use = autouse(db[root]["vartree"], *self._pargs, **self._kwargs) return self._use - if isinstance(self.configdict["auto"], - portage_util.LazyItemsDict): - lazy_values = self.configdict["auto"] - else: - lazy_values = portage_util.LazyItemsDict() - lazy_values.update(self.configdict["auto"]) - lazy_values.addLazyItem("USE", LazyAutouse(use_cache=use_cache)) - self.configdict["auto"] = lazy_values + self.configdict["auto"] = portage_util.LazyItemsDict(self.configdict["auto"]) + self.configdict["auto"].addLazyItem("USE", LazyAutouse(use_cache=use_cache)) else: self.configdict["auto"]["USE"]="" else: |