diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-27 23:55:45 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-27 23:55:45 +0000 |
commit | 8ac4cf5ef0e4ea62e3c28985134206b44ff93889 (patch) | |
tree | c338d9c53c36f66f82d9bffb8262817ebb5224fe | |
parent | fe1afa72b10a516c48281278ccec3c3d33a5f24a (diff) | |
download | portage-8ac4cf5ef0e4ea62e3c28985134206b44ff93889.tar.gz portage-8ac4cf5ef0e4ea62e3c28985134206b44ff93889.tar.bz2 portage-8ac4cf5ef0e4ea62e3c28985134206b44ff93889.zip |
Avoid a TypeError with emerge -kN when there's no matching ebuild.
svn path=/main/trunk/; revision=4858
-rwxr-xr-x | bin/emerge | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge index 32bee88b8..a7b2b0a29 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1269,7 +1269,10 @@ class depgraph: mydb = None if "--usepkgonly" not in self.myopts and myeb: mydb = portdb - pkgsettings.setcpv(myeb, mydb=mydb) + if myeb: + pkgsettings.setcpv(myeb, mydb=mydb) + else: + pkgsettings.setcpv(myeb_pkg, mydb=mydb) now_use = pkgsettings["USE"].split() forced_flags = set() forced_flags.update(pkgsettings.useforce) |