From: Zac Medico Date: Fri, 6 Jul 2007 09:21:44 +0000 (-0000) Subject: Don't exclude system virtuals from world since they can match multiple old-style... X-Git-Tag: v2.1.3~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=63e2bd7bdfa4697d0e8def48ad3b25b2f143dc96;p=portage.git Don't exclude system virtuals from world since they can match multiple old-style virtuals but only one of them will be pulled in by update or depclean. (trunk r7180) svn path=/main/branches/2.1.2/; revision=7181 --- diff --git a/bin/emerge b/bin/emerge index 599c9bd6e..c9ce08464 100755 --- a/bin/emerge +++ b/bin/emerge @@ -720,8 +720,16 @@ def create_world_atom(pkg_key, metadata, args_set, sets, portdb): if new_world_atom == sets["world"].findAtomForPackage(pkg_key, metadata): # Both atoms would be identical, so there's nothing to add. return None - if not slotted and sets["system"].findAtomForPackage(pkg_key, metadata): - return None + if not slotted: + # Unlike world atoms, system atoms are not greedy for slots, so they + # can't be safely excluded from world if they are slotted. + system_atom = sets["system"].findAtomForPackage(pkg_key, metadata) + if system_atom and \ + not portage.dep_getkey(system_atom).startswith("virtual/"): + # System virtuals aren't safe to exclude from world since they can + # match multiple old-style virtuals but only one of them will be + # pulled in by update or depclean. + return None return new_world_atom def filter_iuse_defaults(iuse):