summaryrefslogtreecommitdiffstats
path: root/bin/portageq
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-16 00:42:01 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-16 00:42:01 +0000
commitd4957b4ff624f352ab1855d4d023b7c7dd90abc7 (patch)
treec362fead9ecb5f2d74434cb3c0ec0075d987346c /bin/portageq
parent8a4d53b0e5d4430ded59aaf534d404db2bf9f143 (diff)
downloadportage-d4957b4ff624f352ab1855d4d023b7c7dd90abc7.tar.gz
portage-d4957b4ff624f352ab1855d4d023b7c7dd90abc7.tar.bz2
portage-d4957b4ff624f352ab1855d4d023b7c7dd90abc7.zip
merge glep42 into trunk
svn path=/main/trunk/; revision=5658
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/portageq b/bin/portageq
index 791aa4c9a..6485d7c79 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -270,6 +270,17 @@ def envvar(argv):
else:
print portage.settings[arg]
+def get_repos(argv):
+ """<root>
+ Returns all repos with names (repo_name file) argv[0] = $ROOT
+ """
+ print " ".join(portage.db[argv[0]]["porttree"].dbapi.getRepositories())
+
+def get_repo_path(argv):
+ """<root> <repo_id>
+ Returns the path to the repo named argv[1], argv[0] = $ROOT
+ """
+ print portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(argv[1])
#-----------------------------------------------------------------------------
#