Fix deprecated config.getvirtuals() usage that's triggered by
authorZac Medico <zmedico@gentoo.org>
Sat, 10 Apr 2010 18:45:41 +0000 (11:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 10 Apr 2010 18:45:41 +0000 (11:45 -0700)
gentoolkit-0.2.x.

pym/portage/__init__.py

index cacffc1f0e9b1977e75d0ab4515ab25abe244482..764c97466c0d9a7ecbfe1edb2cb290663726eac3 100644 (file)
@@ -543,7 +543,7 @@ def create_trees(config_root=None, target_root=None, trees=None):
 
        for myroot, mysettings in myroots:
                trees[myroot] = portage.util.LazyItemsDict(trees.get(myroot, {}))
-               trees[myroot].addLazySingleton("virtuals", mysettings.getvirtuals, myroot)
+               trees[myroot].addLazySingleton("virtuals", mysettings.getvirtuals)
                trees[myroot].addLazySingleton(
                        "vartree", vartree, myroot, categories=mysettings.categories,
                                settings=mysettings)