Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-25628

yum metadata missing provides entries when multiple versions are provided by a package

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.28.1
    • Fix Version/s: 3.29.0
    • Component/s: Yum
    • Labels:
    • Notability:
      3

      Description

      The metadata generated by a yum hosted repository only includes the lowest version of a provides list entry in the case where there are multiple versions provided by the package.

      Steps:

      1. Download the following example rpm: https://download.mono-project.com/repo/centos7-stable/m/mono-core/mono-core-6.0.0.327-0.xamarin.1.epel7.x86_64.rpm.

      2. Upload the rpm to a yum hosted repository.
      Once the metadata is generated, in the primary.xml the <provides> section has only one entry for mono(mscorlib) with version 1.0.5000.0:
      <rpm:entry ver="1.0.5000.0" name="mono(mscorlib)" flags="EQ" epoch="0"/>

      3. Use createrepo to create a local repository containing the same rpm
      The primary.xml contains three entries with different versions:
      <rpm:entry name="mono(mscorlib)" flags="EQ" epoch="0" ver="1.0.5000.0"/>
      <rpm:entry name="mono(mscorlib)" flags="EQ" epoch="0" ver="2.0.0.0"/>
      <rpm:entry name="mono(mscorlib)" flags="EQ" epoch="0" ver="4.0.0.0"/>

        Attachments

          Activity

            People

            Assignee:
            iudovika Igor Udovika
            Reporter:
            cseney Cassandra Seney
            CC:
            John Doyle
            Last Updated By:
            Joe Tom Joe Tom
            Team:
            NXRM - Rocket Raccoon
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title