diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-05-28 22:12:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-05-28 22:12:18 +0000 |
commit | 6d7250f9a78f947d3f86aec352050d35fa2f6986 (patch) | |
tree | 879699c2fd15858e29c223acf00490c6c7a9f4e0 | |
parent | 8eb863f2b33e0ad583a4046f049fcc9151a952b6 (diff) | |
download | portage-6d7250f9a78f947d3f86aec352050d35fa2f6986.tar.gz portage-6d7250f9a78f947d3f86aec352050d35fa2f6986.tar.bz2 portage-6d7250f9a78f947d3f86aec352050d35fa2f6986.zip |
Skip redundant Atom construction in select_package().
svn path=/main/trunk/; revision=10468
-rw-r--r-- | pym/_emerge/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |