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

software_packages.csv is always regenerated, even when cache is recent

    XMLWordPrintable

    Details

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

      Description

      See also: https://dev.cfengine.com/issues/6441

      I am using the cfengine standard library to install packages

      Cfengine does not property detect the package manager
      <pre>
      2014-08-01T10:03:41+0200 verbose: /default/test/packages/'accounting-nrc'[0]: manager = /usr/bin/env DEBIAN_FRONTEND=noninteractive LC_ALL=C PATH=/bin:/sbin/:/usr/bin:/usr/sbin /usr/bin/dpkg -l
      2014-08-01T10:03:41+0200 verbose: /default/test/packages/'accounting-nrc'[0]: Read name=zlib1g-dev, version=1:1.2.7.dfsg-13, arch=default, mgr=dpkg from file
      2014-08-01T10:03:41+0200 verbose: /default/test/packages/'accounting-nrc'[0]: thismanager=env , mgr=dpkg
      </pre>

      It is is due this statement:
      <pre>
      snprintf(thismanager, CF_MAXVARSIZE - 1, "%s", ReadLastNode(CommandArg0(manager->manager)));
      </pre>

      I think a lot of people are hit by this detection

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                bas Bas van der Vlies
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel