From 36bdacd2807d0ab6cfecc590426df52c7b1c29d8 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 7 Nov 2011 21:11:31 +0100 Subject: Allow repository dependencies in command line arguments for --config and --info actions. --- pym/_emerge/actions.py | 2 +- pym/_emerge/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index af3780e70..4a72ff471 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -461,7 +461,7 @@ def action_config(settings, trees, myopts, myfiles): if len(myfiles) != 1: print(red("!!! config can only take a single package atom at this time\n")) sys.exit(1) - if not is_valid_package_atom(myfiles[0]): + if not is_valid_package_atom(myfiles[0], allow_repo=True): portage.writemsg("!!! '%s' is not a valid package atom.\n" % myfiles[0], noiselevel=-1) portage.writemsg("!!! Please check ebuild(5) for full details.\n") diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index d4a6bd30f..e2e12c650 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1962,7 +1962,7 @@ def emerge_main(args=None): bindb = trees[settings['EROOT']]["bintree"].dbapi valid_atoms = [] for x in myfiles: - if is_valid_package_atom(x): + if is_valid_package_atom(x, allow_repo=True): try: #look at the installed files first, if there is no match #look at the ebuilds, since EAPI 4 allows running pkg_info -- cgit v1.2.3-1-g7c22