portageq: Support repositories_configuration command.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sun, 14 Jul 2013 08:38:25 +0000 (10:38 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sun, 14 Jul 2013 08:38:25 +0000 (10:38 +0200)
bin/portageq

index 0e1cb6408f24204f6844e2e1dee353f1fe07c6a7..4c2f4646f59a581137f26ae13ea654c97a1c4266 100755 (executable)
@@ -650,6 +650,14 @@ def gentoo_mirrors(argv):
        print(portage.settings["GENTOO_MIRRORS"])
 
 
+def repositories_configuration(argv):
+       """
+       Returns the configuration of repositories.
+       """
+       sys.stdout.write(portage.settings.repositories.config_string())
+       sys.stdout.flush()
+
+
 def portdir(argv):
        """
        Returns the PORTDIR path.