Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1760

Package promise yum - Failure trying to compare available package versions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.4
    • Component/s: Packaging
    • Labels:
      None

      Description

      When attempting to install a specific version, or using greater than or equal to, of a package using yum, the version comparison fails with "Failure trying to compare available package versions".

      Example:

      vars:
      "pk_ksh" string => "ksh";
      (centos_6|redhat_6).!oracle_6::
      "pk_ksh_version" string => "20120801-10.el6_5.8";

      packages:
      "$(pk_ksh)"
      package_policy => "add",
      package_method => yum,
      package_select => ">=",
      package_version => "$(pk_ksh_version)",
      package_architectures =>

      { "$(sys.arch)", }

      ,
      classes => if_repaired("pk_ksh");

      1. cf-agent -KIC -b app_ksh
        2014-11-14T12:46:36-0500 info: Using command line specified bundlesequence
        2014-11-14T12:46:38-0500 error: /default/app_ksh/packages/'ksh'[0]: Failure trying to compare available package versions

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              ccoager Cory Coager
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel