Simplify the vartree constructor usage in config.getvirtuals().
authorZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 19:16:02 +0000 (12:16 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 19:16:02 +0000 (12:16 -0700)
pym/portage/package/ebuild/config.py

index 01950f9af37723b74b5b217573aee39f714fec4d..cf2586f6ce57705ec4a4f615a37acfcbe3bd0e89 100644 (file)
@@ -1967,8 +1967,7 @@ class config(object):
                        #and vartree needs a config instance.
                        #This code should be part of VirtualsManager.getvirtuals().
                        if self.local_config:
-                               temp_vartree = vartree(self["ROOT"], None,
-                                       categories=self.categories, settings=self)
+                               temp_vartree = vartree(settings=self)
                                self._virtuals_manager._populate_treeVirtuals(temp_vartree)
                        else:
                                self._virtuals_manager._treeVirtuals = {}