aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-07-14 20:01:52 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2013-07-14 20:01:52 +0200
commite71f4a5061005fe02787ed58c53330eb8b07d2d2 (patch)
tree460ce4e361783d6c5e97ae0d755f8dade741464c /bin/portageq
parentportageq: Support repositories_configuration command. (diff)
downloadportage-e71f4a5061005fe02787ed58c53330eb8b07d2d2.tar.gz
portage-e71f4a5061005fe02787ed58c53330eb8b07d2d2.tar.bz2
portage-e71f4a5061005fe02787ed58c53330eb8b07d2d2.zip
portageq repositories_configuration: Require EROOT argument.
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/portageq b/bin/portageq
index 4c2f4646f..c5c37d9b7 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -651,11 +651,15 @@ def gentoo_mirrors(argv):
def repositories_configuration(argv):
- """
+ """<eroot>
Returns the configuration of repositories.
"""
- sys.stdout.write(portage.settings.repositories.config_string())
+ if len(argv) < 1:
+ print("ERROR: insufficient parameters!", file=sys.stderr)
+ return 3
+ sys.stdout.write(portage.db[argv[0]]["vartree"].settings.repositories.config_string())
sys.stdout.flush()
+repositories_configuration.uses_eroot = True
def portdir(argv):