From 6d7250f9a78f947d3f86aec352050d35fa2f6986 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 28 May 2008 22:12:18 +0000 Subject: [PATCH] Skip redundant Atom construction in select_package(). svn path=/main/trunk/; revision=10468 --- pym/_emerge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2