s/portage.eclass_cache/eclass_cache/ since eclass_cache is actually a local variable...
authorZac Medico <zmedico@gentoo.org>
Fri, 3 Aug 2007 00:49:15 +0000 (00:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 3 Aug 2007 00:49:15 +0000 (00:49 -0000)
svn path=/main/trunk/; revision=7547

pym/portage/cache/util.py

index 870e988737f73e2576c2b9d8ae63949d12909e88..eb08f11e3a64f6c606a3f72a66215bf13d8f3636 100644 (file)
@@ -67,11 +67,11 @@ def mirror_cache(valid_nodes_iterable, src_cache, trg_cache, eclass_cache=None,
                                        if not "_eclasses_" in entry:
                                                noise.corruption(x,"missing _eclasses_ field")
                                                continue
-                                       if not portage.eclass_cache.is_eclass_data_valid(entry["_eclasses_"]):
+                                       if not eclass_cache.is_eclass_data_valid(entry["_eclasses_"]):
                                                noise.eclass_stale(x)
                                                continue
                                else:
-                                       entry["_eclasses_"] = portage.eclass_cache.get_eclass_data(entry["INHERITED"].split(), \
+                                       entry["_eclasses_"] = eclass_cache.get_eclass_data(entry["INHERITED"].split(), \
                                                from_master_only=True)
                                        if not entry["_eclasses_"]:
                                                noise.eclass_stale(x)