Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7529

Handling of non-leading tildes in rpmvercmp

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 4.10.1
    • PUP 5.0.0
    • None
    • Bug Fix
    • This fixes a bug in the rpm package provider that did properly sort packages containing tildes that did not occur as the first character.
    • No Action

    Description

      rpmvercmp handles only the leading tilde.
      So, the following test fails.

      it { expect(provider.rpmvercmp("~", "~~")).to eq(1) }
      

      A tilde must sort before everything else.
      https://github.com/rpm-software-management/rpm/issues/214

      Attachments

        Activity

          People

            Unassigned Unassigned
            knqyf263 Teppei Fukuda
            Eric Delaney Eric Delaney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support