From 2c688450d124c1a600959d9615d918a824ec0ecb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 9 Apr 2009 17:40:05 +0000 Subject: [PATCH] Initialize self._trg_cache.ec inside the GenCache constructor. svn path=/main/trunk/; revision=13307 --- 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