From: Zac Medico Date: Wed, 28 May 2008 22:12:18 +0000 (-0000) Subject: Skip redundant Atom construction in select_package(). X-Git-Tag: v2.2_pre8~81 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d7250f9a78f947d3f86aec352050d35fa2f6986;p=portage.git Skip redundant Atom construction in select_package(). svn path=/main/trunk/; revision=10468 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 9dcc16414..bbd35c273 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3024,7 +3024,8 @@ class depgraph(object): # List of acceptable packages, ordered by type preference. matched_packages = [] highest_version = None - atom = portage.dep.Atom(atom) + if not isinstance(atom, portage.dep.Atom): + atom = portage.dep.Atom(atom) atom_cp = atom.cp existing_node = None myeb = None