From 467c37c27fec6b05eb046fb06d4395087bf3565a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 1 Mar 2011 12:42:56 -0800 Subject: [PATCH] owners_cache: add parent dirs deeper than EPREFIX --- pym/portage/dbapi/vartree.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index a7a7d4063..dc1925d14 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -814,6 +814,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) @@ -833,7 +835,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 -- 2.26.2