Initialize self._trg_cache.ec inside the GenCache constructor.
authorZac Medico <zmedico@gentoo.org>
Thu, 9 Apr 2009 17:40:05 +0000 (17:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 9 Apr 2009 17:40:05 +0000 (17:40 -0000)
svn path=/main/trunk/; revision=13307

bin/egencache

index 47e4ea2c7b627129ba76f5e4d3cf7d288cef4c7f..89708ad71fc5698fd97707a8739e516fba178713 100755 (executable)
@@ -133,6 +133,11 @@ class GenCache(object):
                        "metadata/cache", portage.auxdbkeys[:])
                if rsync:
                        self._trg_cache.raise_stat_collision = True
+               try:
+                       self._trg_cache.ec = \
+                               portdb._repo_info[portdb.porttrees[0]].eclass_db
+               except AttributeError:
+                       pass
                self._existing_nodes = set()
 
        def _metadata_callback(self, cpv, ebuild_path, repo_path, metadata):