From 8695f720cf5e55cd5c78f769c606f9fedde97d76 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 8 Oct 2010 17:53:54 -0700 Subject: Allow repo in more Atom instances. --- pym/_emerge/depgraph.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'pym') diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index fcf7bf8e3..5792c9605 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1696,12 +1696,14 @@ class depgraph(object): if expanded_atoms: atom = expanded_atoms[0] else: - null_atom = Atom(insert_category_into_atom(x, "null")) + null_atom = Atom(insert_category_into_atom(x, "null"), + allow_repo=True) cat, atom_pn = portage.catsplit(null_atom.cp) virts_p = root_config.settings.get_virts_p().get(atom_pn) if virts_p: # Allow the depgraph to choose which virtual. - atom = Atom(null_atom.replace('null/', 'virtual/', 1)) + atom = Atom(null_atom.replace('null/', 'virtual/', 1), + allow_repo=True) else: atom = null_atom @@ -5415,12 +5417,14 @@ class _dep_check_composite_db(dbapi): if expanded_atoms: atom = expanded_atoms[0] else: - null_atom = Atom(insert_category_into_atom(atom, "null")) + null_atom = Atom(insert_category_into_atom(atom, "null"), + allow_repo=True) cat, atom_pn = portage.catsplit(null_atom.cp) virts_p = root_config.settings.get_virts_p().get(atom_pn) if virts_p: # Allow the resolver to choose which virtual. - atom = Atom(null_atom.replace('null/', 'virtual/', 1)) + atom = Atom(null_atom.replace('null/', 'virtual/', 1), + allow_repo=True) else: atom = null_atom return atom -- cgit v1.2.3-1-g7c22