Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 271551
Collapse All | Expand All

(-)pym/_emerge/__init__.py (+12 lines)
Lines 5639-5645 Link Here
5639
					expanded_atoms = [atom for atom in expanded_atoms \
5639
					expanded_atoms = [atom for atom in expanded_atoms \
5640
						if portage.dep_getkey(atom) == installed_cp]
5640
						if portage.dep_getkey(atom) == installed_cp]
5641
5641
5642
				#if a non-virtual package and one or more virtual packages
5643
				#are in expanded_atoms, use the non-virtual package
5642
				if len(expanded_atoms) > 1:
5644
				if len(expanded_atoms) > 1:
5645
					number_of_virtuals = 0
5646
					for expanded_atom in expanded_atoms:
5647
						if expanded_atom.startswith("virtual/"):
5648
							number_of_virtuals += 1
5649
						else:
5650
							candidate = expanded_atom
5651
					if len(expanded_atoms) - number_of_virtuals == 1:
5652
						expanded_atoms = [ candidate ]
5653
5654
				if len(expanded_atoms) > 1:
5643
					print
5655
					print
5644
					print
5656
					print
5645
					ambiguous_package_name(x, expanded_atoms, root_config,
5657
					ambiguous_package_name(x, expanded_atoms, root_config,

Return to bug 271551