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

Package update to version latest doesn't update at all

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: packages
    • Labels:
      None
    • Platform:
      Any

      Description

      I've been trying to update packages to latest version, with no success at all.
      Upon debugging, I realized that in verify_package.c, the a.packages.package_list_update_command command was executed to fetch the list of available package, but only displayed in the log, and the result of its execution is ignored !
      Timestamp of software_update_timestamp_yum is updated, and then a check on the package is made in CheckPackageState:

      • first to see is package is installed, by looking in the list of installed package, with version ignored, just to see if package is there (in PackageMatch)
      • then, a misleading check is made, again by looking in the list of installed package, with version verified (in PackageMatch). Obviously, the package already installed match the one in the list of installed package, and nothing is done..

      Am I completly mistaken in my analysis ?

      I do believe we should store the list of available package to install somewhere, and use it for checking version

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              ncharles Nicolas Charles
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel