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