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

pkgng does not parse latest version properly

    XMLWordPrintable

Details

    • Other
    • Night's Watch
    • 1
    • NW - 2020-04-15
    • Needs Assessment
    • Bug Fix
    • Correctly parse `pkgng` latest versions for packages no longer found in the repo. (contributed by: [martijndegouw](https://github.com/martijndegouw))
    • Needs Assessment

    Description

      Puppet Version: 5.5.18
      Puppet Server Version: 5.5.18
      OS Name/Version: FreeBSD 12

      the pkgng provider does not parse the output of pkg version -voRL= correctly.
      If the package is no longer found in the repo, no latest version can be parsed out of it.

      For example the output is:
      sysutils/splunk ? orphaned: sysutils/splunk
      databases/sqlite3 < needs updating (remote has 3.30.1)

      Desired Behavior:

      latests version for splunk should be nil
      latests version for sqlite3 should be 3.30.1

      Actual Behavior:

      latests version for splunk is sysutils/splunk
      latests version for sqlite3 is 3.30.1

       

      Attachments

        Activity

          People

            gabriel.nagy Gabriel Nagy
            mdegouw Martijn de Gouw
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support