docs: def remote_url(connector, env, repo, filename):
      """
      return a str containing a link to the rpm in the pulp repository
      """
      dl_base = connector.base_url.replace('/pulp/api/v2', '/pulp/repos')
  
      repoid = '%s-%s' % (repo, env)
  
      _r = connector.get('/repositories/%s/' % repoid)
      if not _r.status_code == Constants.PULP_GET_OK:
          # maybe the repo name is the repoid
          _r = connector.get('/repositories/%s/' % repo)
          if not _r.status_code == Constants.PULP_GET_OK:
              raise JuicerPulpError("%s was not found as a repoid. Status code %s returned by pulp" % \
                      (repoid, _r.status_code))
  
      repo = juicer.utils.load_json_str(_r.content)['display_name']
  
      link = '%s/%s/%s/%s' % (dl_base, env, repo, filename)
  
      return link