Allow repository dependencies in command line arguments for --config and --info actions.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Mon, 7 Nov 2011 20:11:31 +0000 (21:11 +0100)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Mon, 7 Nov 2011 20:11:31 +0000 (21:11 +0100)
pym/_emerge/actions.py
pym/_emerge/main.py

index af3780e70ef72337cd444f17627dd280f4223d95..4a72ff471752f9135a07160a7ef6c2e97c9b6ecf 100644 (file)
@@ -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")
index d4a6bd30ffd05b42272171f046cc9438facfc8fa..e2e12c65009abddce2a503bbb757451a509039db 100644 (file)
@@ -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