Skip redundant Atom construction in select_package().
authorZac Medico <zmedico@gentoo.org>
Wed, 28 May 2008 22:12:18 +0000 (22:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 May 2008 22:12:18 +0000 (22:12 -0000)
svn path=/main/trunk/; revision=10468

pym/_emerge/__init__.py

index 9dcc1641469a8c22b0a2fec069ae999be6bf05b5..bbd35c273d8c0770c7dcbe776938716c555aeb91 100644 (file)
@@ -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