portageq: get_repo* uses_root
authorZac Medico <zmedico@gentoo.org>
Fri, 9 Dec 2011 18:54:04 +0000 (10:54 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 9 Dec 2011 18:54:04 +0000 (10:54 -0800)
bin/portageq

index cee343fc8baf121ce0f2fc9316a584d2489e7b27..e1cf1a0f7ac7465fd0fe38768f2bc7f23792c306 100755 (executable)
@@ -708,6 +708,8 @@ def get_repos(argv):
                sys.exit(2)
        print(" ".join(portage.db[argv[0]]["porttree"].dbapi.getRepositories()))
 
+get_repos.uses_root = True
+
 def get_repo_path(argv):
        """<eroot> <repo_id>+
        Returns the path to the repo named argv[1], argv[0] = $EROOT
@@ -721,6 +723,8 @@ def get_repo_path(argv):
                        path = ""
                print(path)
 
+get_repo_path.uses_root = True
+
 def list_preserved_libs(argv):
        """<eroot>
        Print a list of libraries preserved during a package update in the form