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

pkgng does not parse latest version properly

    XMLWordPrintable

    Details

    • Template:
      PUP Bug Template
    • Agent OS:
      Other
    • Master OS:
      Other
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2020-04-15
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Correctly parse `pkgng` latest versions for packages no longer found in the repo. (contributed by: [martijndegouw](https://github.com/martijndegouw))
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support