From f8aca27dd24d223d45be9ed54f2cdcddd4f0feb3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 07:02:27 +0000 Subject: [PATCH] Initialize self._trg_cache.ec inside the GenCache constructor. (trunk r13307) svn path=/main/branches/2.1.6/; revision=13478 --- bin/egencache | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/egencache b/bin/egencache index 47e4ea2c7..89708ad71 100755 --- a/bin/egencache +++ b/bin/egencache @@ -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): -- 2.26.2