From 475f3989323a251969680f7af59f9f3ac0e1e9a8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 26 Oct 2010 12:45:30 -0700 Subject: ebuild(1): fix breakage for /var/db/pkg ebuilds --- bin/ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ebuild b/bin/ebuild index d8ab5ef12..ecb37951e 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -153,8 +153,9 @@ if ebuild_portdir != vdb_path and \ # Constrain eclass resolution to the master(s) # that are specified in layout.conf (using an # approach similar to repoman's). -repo_info = portage.portdb._repo_info[ebuild_portdir] -portage.portdb.porttrees = list(repo_info.eclass_db.porttrees) +if ebuild_portdir != vdb_path: + repo_info = portage.portdb._repo_info[ebuild_portdir] + portage.portdb.porttrees = list(repo_info.eclass_db.porttrees) if not os.path.exists(ebuild): print("'%s' does not exist." % ebuild) -- cgit v1.2.3-1-g7c22