summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-26 12:45:30 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-27 07:39:27 -0700
commit475f3989323a251969680f7af59f9f3ac0e1e9a8 (patch)
treea62e5a49277f0bde643afa02e94358264c616587 /bin
parentbb4460b4b85839a842871daf2044275b2ce4b0f8 (diff)
downloadportage-475f3989323a251969680f7af59f9f3ac0e1e9a8.tar.gz
portage-475f3989323a251969680f7af59f9f3ac0e1e9a8.tar.bz2
portage-475f3989323a251969680f7af59f9f3ac0e1e9a8.zip
ebuild(1): fix breakage for /var/db/pkg ebuilds
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild5
1 files changed, 3 insertions, 2 deletions
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)