diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-26 12:45:30 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-26 12:45:30 -0700 |
commit | 4825a9b5cbc2e3173c4b9dcf2b6444811cca959c (patch) | |
tree | dc469a6883202be36f2c674da6b2d1a54272dbde /bin | |
parent | 0288c187e5f500e42a3981a7bffa00957309a8d1 (diff) | |
download | portage-4825a9b5cbc2e3173c4b9dcf2b6444811cca959c.tar.gz portage-4825a9b5cbc2e3173c4b9dcf2b6444811cca959c.tar.bz2 portage-4825a9b5cbc2e3173c4b9dcf2b6444811cca959c.zip |
ebuild(1): fix breakage for /var/db/pkg ebuilds
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ebuild b/bin/ebuild index ae793ac4d..93859327d 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -153,9 +153,11 @@ 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). -myrepo = portage.portdb.getRepositoryName(ebuild_portdir) -repo_info = portage.portdb._repo_info[ebuild_portdir] -portage.portdb.porttrees = list(repo_info.eclass_db.porttrees) +myrepo = None +if ebuild_portdir != vdb_path: + myrepo = portage.portdb.getRepositoryName(ebuild_portdir) + 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) |