portageq: add aliases for bug #476830
authorZac Medico <zmedico@gentoo.org>
Mon, 22 Jul 2013 01:58:50 +0000 (18:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 22 Jul 2013 01:58:50 +0000 (18:58 -0700)
bin/portageq

index 0d9c27829bc2521df3ad04f520201ecd9817b626..d31ae34aab6ef702651aff4ff6b1bb419e917263 100755 (executable)
@@ -668,6 +668,13 @@ def repositories_configuration(argv):
        sys.stdout.write(portage.db[argv[0]]["vartree"].settings.repositories.config_string())
        sys.stdout.flush()
 
+@uses_eroot
+def repos_config(argv):
+       """
+       <eroot>
+       This is an alias for the repositories_configuration command.
+       """
+       return repositories_configuration(argv)
 
 def portdir(argv):
        """
@@ -769,6 +776,12 @@ def master_repositories(argv):
                else:
                        print(" ".join(x.name for x in repo.masters))
 
+@uses_eroot
+def master_repos(argv):
+       """<eroot> <repo_id>+
+       This is an alias for the master_repositories command.
+       """
+       return master_repositories(argv)
 
 @uses_eroot
 def get_repo_path(argv):