Fix bug in get_repo_path() when called with multiple args. v2.2_rc3
authorZac Medico <zmedico@gentoo.org>
Wed, 23 Jul 2008 21:27:05 +0000 (21:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 23 Jul 2008 21:27:05 +0000 (21:27 -0000)
svn path=/main/trunk/; revision=11179

bin/portageq

index be7f51a886d09c6afcb817d90ba3cfa6b8cdd845..61cba4ab8a8d4053a440f9f167c37b4372ae2d98 100755 (executable)
@@ -384,7 +384,7 @@ def get_repo_path(argv):
                print "ERROR: insufficient parameters!"
                sys.exit(2)
        for arg in argv[1:]:
-               print portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(argv[1])
+               print portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg)
 
 def list_preserved_libs(argv):
        """<root>