Ejemplo n.º 1
0
    def get_repo_url(self, repo):
        if not self.has_repo(repo):
            raise RepoError(_("Repository %s does not exist.") % repo)

        urifile_path = pisi.util.join_path(ctx.config.index_dir(), repo, "uri")
        uri = open(urifile_path, "r").read()
        return uri.rstrip()
Ejemplo n.º 2
0
    def get_repo_url(self, repo):
        if not self.has_repo(repo):
            raise RepoError(_("Repository %s does not exist.") % repo)

        urifile_path = pisi.util.join_path(ctx.config.index_dir(), repo, "uri")
        uri = open(urifile_path, "r").read()
        return uri.rstrip()
Ejemplo n.º 3
0
 def get_repo_url(self, repo):
     urifile_path = pisi.util.join_path(ctx.config.index_dir(), repo, "uri")
     uri = open(urifile_path, "r").read()
     return uri.rstrip()
Ejemplo n.º 4
0
 def get_repo_url(self, repo):
     urifile_path = pisi.util.join_path(ctx.config.index_dir(), repo, "uri")
     uri = open(urifile_path, "r").read()
     return uri.rstrip()