From: Zac Medico Date: Tue, 1 Mar 2011 20:42:56 +0000 (-0800) Subject: owners_cache: add parent dirs deeper than EPREFIX X-Git-Tag: v2.2.0_alpha26~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=43e0b3ea4289aab9b4258d29d06afac40abd6c01;p=portage.git owners_cache: add parent dirs deeper than EPREFIX --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 77d025607..845a5c3b2 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -815,6 +815,8 @@ class vardbapi(dbapi): def __init__(self, vardb): self._vardb = vardb + self._eprefix_split_len = len(x for x in \ + vardb.settings["EPREFIX"].split(os.sep) if x) def add(self, cpv): root_len = len(self._vardb._eroot) @@ -834,7 +836,7 @@ class vardbapi(dbapi): self._add_path(x, pkg_hash) x_split = x.split(os.sep) x_split.pop() - while x_split: + while len(x_split) > self._eprefix_split_len: parent = os.sep.join(x_split) if parent in added_paths: break