Your message dated Tue, 12 May 2009 22:04:40 +0100
with message-id <[email protected]>
and subject line cfengine2: editfile doesn't uptate the mtime of the file
has caused the Debian Bug report #518306,
regarding cfengine2: editfile doesn't uptate the mtime of the file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
518306: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518306
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cfengine2
Version: 2.2.8-1
Severity: normal

The edifile doesn't update the mtime field. The result is that
BeginGroupIfFileIsNewer is always executed as the other file is always
newer.
For example the following sample will edit the file each time
copy:
        any::

/var/lib/cfengine2/inputs/repo/debian/etc/exim4/update-exim4.conf.conf
        dest=/etc/exim4/update-exim4.conf.conf.cftemplate
        r=inf
        mode=600
        owner=root
        server=$(serveurref)

editfiles:
        any::
        { /etc/exim4/update-exim4.conf.conf
                BeginGroupIfFileIsNewer
"/etc/exim4/update-exim4.conf.conf.cftemplate"
                        EmptyEntireFilePlease
                        InsertLine "#generated based on
/etc/exim4/update-exim4.conf.conf.cftemplate"
                        InsertFile
"/etc/exim4/update-exim4.conf.conf.cftemplate"
                        ExpandVariables
                        DefineInGroup "exim4_modified"

                EndGroup



The expected behavior is that the edit file is only executed if I change the
/var/lib/cfengine2/inputs/repo/debian/etc/exim4/update-exim4.conf.conf in my
repository

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-openvz-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages cfengine2 depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management
sy
ii  debianutils                   2.30       Miscellaneous utilities
specific t
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libdb4.6                      4.6.21-11  Berkeley v4.6 Database
Libraries [
ii  libssl0.9.8                   0.9.8g-15  SSL shared libraries
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init
scrip
ii  perl                          5.10.0-19  Larry Wall's Practical
Extraction

cfengine2 recommends no packages.

cfengine2 suggests no packages.

-- debconf information:
  cfengine2/run_cfservd: false
  cfengine2/run_cfenvd: false
  cfengine2/run_cfexecd: false

--- End Message ---
--- Begin Message ---
Hi,
I'm closing this bug because no information was provided and the cfengine fragment posted is not behaving as expected because the file is not copied over; once you force the copy the mtime will be udpated accordingly; please have a look at my last correspondence

Feel free to reopen if my explanation is not clear.

Cheers
Antonio


--- End Message ---

Reply via email to