summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dep.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index 8a8958788..43e34cdb7 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -611,6 +611,9 @@ def isvalidatom(atom, allow_blockers=False):
1) 0 if the atom is invalid
2) 1 if the atom is valid
"""
+ existing_atom = Atom._atoms.get(atom)
+ if existing_atom is not None:
+ atom = existing_atom
if isinstance(atom, Atom):
if atom.blocker and not allow_blockers:
return 0