ebuild(1): fix breakage for /var/db/pkg ebuilds
authorZac Medico <zmedico@gentoo.org>
Tue, 26 Oct 2010 19:45:30 +0000 (12:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 14:39:27 +0000 (07:39 -0700)
bin/ebuild

index d8ab5ef121eb3209be5e7f55d6ca4ec3de7f1d99..ecb37951e0b2bb535025dba7a1fc4364d06c1b57 100755 (executable)
@@ -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)