Return early from create_world_atom() if an atom matching the package
authorZac Medico <zmedico@gentoo.org>
Sat, 3 May 2008 22:42:24 +0000 (22:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 May 2008 22:42:24 +0000 (22:42 -0000)
can't be found for some reason.

svn path=/main/branches/2.1.2/; revision=10144

bin/emerge

index 80cdaf737639cc1ddabfc694ea9e1377931eecff..5077929622491d3701e580b81fa070096d28147c 100755 (executable)
@@ -913,6 +913,8 @@ def create_world_atom(pkg_key, metadata, args_set, root_config):
        be greedy with respect to slots.  Unslotted system packages will not be
        stored in world."""
        arg_atom = args_set.findAtomForPackage(pkg_key, metadata)
+       if not arg_atom:
+               return None
        cp = portage.dep_getkey(arg_atom)
        new_world_atom = cp
        sets = root_config.sets