Uploaded image for project: 'Percona Release'
  1. Percona Release
  2. PREL-213

URL is used inconsistently

Details

    • Bug
    • Status: In Progress
    • Medium
    • Resolution: Unresolved
    • 1.0-27
    • None
    • Packaging
    • Yes

    Description

      Whilst the URL variable in the percona-release script is used in most cases, there are instances of hard-coded domains and even schemes in the script:

      => ag repo.percona.com /usr/bin/percona-release
      16:URL="http://repo.percona.com"
      139:    grep -E '^deb\s' /etc/apt/sources.list /etc/apt/sources.list.d/*.list | cut -f2- -d: | grep percona | awk '{print $2$4}' | sed 's;http://repo.percona.com/;;g' | sed 's;/apt; - ;g' | sed 's;percona;original;g' | sed 's;main;release;g'
      190:    reply=$(curl -Is http://repo.percona.com/${REPO_NAME}/yum/release/${OS_VER}/ | head -n 1 | awk '{print $2}')
      193:    reply=$(curl -Is http://repo.percona.com/${REPO_NAME}/apt/dists/${OS_VER}/ | head -n 1 | awk '{print $2}')
      213:  REPO_LINK="http://repo.percona.com/${REPO_NAME}/"
      

      Attachments

        Activity

          People

            evgeniy.patlan Evgeniy Patlan
            ceri.williams Ceri Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Smart Checklist