From e71f4a5061005fe02787ed58c53330eb8b07d2d2 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 14 Jul 2013 20:01:52 +0200 Subject: [PATCH] portageq repositories_configuration: Require EROOT argument. --- bin/portageq | 8 ++++++-- 1 file 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): - """ + """ 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): -- 2.26.2