From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PuWl1-0003lc-Lq for garchives@archives.gentoo.org; Tue, 01 Mar 2011 21:05:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4927B1C045 for ; Tue, 1 Mar 2011 21:05:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6CA491C0B1 for ; Tue, 1 Mar 2011 20:55:27 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 30BC91B41F9 for ; Tue, 1 Mar 2011 20:55:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 94F088006E for ; Tue, 1 Mar 2011 20:55:26 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <467c37c27fec6b05eb046fb06d4395087bf3565a.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/vartree.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 467c37c27fec6b05eb046fb06d4395087bf3565a Date: Tue, 1 Mar 2011 20:55:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2ee88f88a40deaf1fd46420a4e70a494 commit: 467c37c27fec6b05eb046fb06d4395087bf3565a Author: Zac Medico gentoo org> AuthorDate: Tue Mar 1 20:42:56 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Mar 1 20:54:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D467c37c2 owners_cache: add parent dirs deeper than EPREFIX --- pym/portage/dbapi/vartree.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index a7a7d40..dc1925d 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -814,6 +814,8 @@ class vardbapi(dbapi): =20 def __init__(self, vardb): self._vardb =3D vardb + self._eprefix_split_len =3D len(x for x in \ + vardb.settings["EPREFIX"].split(os.sep) if x) =20 def add(self, cpv): root_len =3D len(self._vardb._eroot) @@ -833,7 +835,7 @@ class vardbapi(dbapi): self._add_path(x, pkg_hash) x_split =3D x.split(os.sep) x_split.pop() - while x_split: + while len(x_split) > self._eprefix_split_len: parent =3D os.sep.join(x_split) if parent in added_paths: break