From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 7 Nov 2011 20:11:31 +0000 (+0100) Subject: Allow repository dependencies in command line arguments for --config and --info actions. X-Git-Tag: v2.2.0_alpha73~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36bdacd2807d0ab6cfecc590426df52c7b1c29d8;p=portage.git Allow repository dependencies in command line arguments for --config and --info actions. --- 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