commit:     57bae253674a5e0ed215f94e10eb3cc0061ae53a
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Mon Dec 15 16:23:03 2014 +0000
Commit:     Arfrever Frehtes Taifersar Arahesis <arfrever <AT> apache <DOT> org>
CommitDate: Mon Dec 15 16:23:03 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=57bae253

portageq pquery: Search ebuilds in all repositories be default.

--all-repos option is no longer supported.
1 call to deprecated portage.repository.config.RepoConfigLoader.mainRepo() 
function
has been deleted.

---
 bin/portageq | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/bin/portageq b/bin/portageq
index 2c4f548..8deeb8a 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -1075,14 +1075,10 @@ def pquery(parser, opts, args):
                        herds.extend(x.split(","))
                xml_matchers.append(HerdMatcher(herds))
 
-       repos = []
-       if opts.all_repos:
-               repos.extend(portdb.repositories.get_repo_for_location(location)
-                       for location in portdb.porttrees)
-       elif opts.repo is not None:
-               repos.append(portdb.repositories[opts.repo])
+       if opts.repo is not None:
+               repos = [portdb.repositories[opts.repo]]
        else:
-               repos.append(portdb.repositories.mainRepo())
+               repos = list(portdb.repositories)
 
        if not atoms:
                names = None
@@ -1220,12 +1216,8 @@ def add_pquery_arguments(parser):
                                },
                                {
                                        "longopt": "--repo",
-                                       "help": "repo to use (default is 
PORTDIR if omitted)"
+                                       "help": "repository to use (all 
repositories are used by default)"
                                },
-                               {
-                                       "longopt": "--all-repos",
-                                       "help": "search all repos"
-                               }
                        )
                ),
                (

Reply via email to