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 1RZGzD-0003ph-E0 for garchives@archives.gentoo.org; Sat, 10 Dec 2011 07:04:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31E4821C0AD; Sat, 10 Dec 2011 07:04:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0423921C0AD for ; Sat, 10 Dec 2011 07:04:33 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 85C5C1B4029 for ; Sat, 10 Dec 2011 07:04:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AC46C80042 for ; Sat, 10 Dec 2011 07:04:32 +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: <716ad204d2107092704e4188f3a73736ec836d44.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/porttree.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 716ad204d2107092704e4188f3a73736ec836d44 Date: Sat, 10 Dec 2011 07:04:32 +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: 5e1a6332-453c-485b-88cb-2538aad19288 X-Archives-Hash: 8c3174f11d85c00d9e47ea4d11e14817 commit: 716ad204d2107092704e4188f3a73736ec836d44 Author: Zac Medico gentoo org> AuthorDate: Sat Dec 10 07:04:24 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Dec 10 07:04:24 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D716ad204 Make portdbapi.eclassdb a property. --- pym/portage/dbapi/porttree.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.p= y index e483edb..233a2c1 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -59,6 +59,13 @@ class portdbapi(dbapi): def porttree_root(self): return self.settings.repositories.mainRepoLocation() =20 + @property + def eclassdb(self): + main_repo =3D self.repositories.mainRepo() + if main_repo is None: + return None + return main_repo.eclass_db + def __init__(self, _unused_param=3DNone, mysettings=3DNone): """ @param _unused_param: deprecated, use mysettings['PORTDIR'] instead @@ -102,7 +109,6 @@ class portdbapi(dbapi): ":".join(filter(None, sandbox_write)) =20 self.porttrees =3D list(self.settings.repositories.repoLocationList()) - self.eclassdb =3D self.repositories.mainRepo().eclass_db =20 # This is used as sanity check for aux_get(). If there is no # root eclass dir, we assume that PORTDIR is invalid or