Your message dated Thu, 26 Feb 2009 05:47:03 +0000
with message-id <e1lcz5l-0001kx...@ries.debian.org>
and subject line Bug#514780: fixed in apticron 1.1.28
has caused the Debian Bug report #514780,
regarding apticron: changes to cron.d file are disregarded or cause postinst to
fail
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 ow...@bugs.debian.org
immediately.)
--
514780: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514780
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: apticron
Version: 1.1.27
Severity: serious
Justification: Policy 10.7.3: local changes must be preserved during a package
upgrade
The postinst script generates errors when it greps through my modified
/etc/cron.d/apticron file. All I did was to comment out the cron entry
like below, as I prefer to run a more complicated script from
/etc/cron.daily/apticron:
# cron entry for apticron
#57 22 * * * root test -x /usr/sbin/apticron && /usr/sbin/apticron --cron
I don't think this is unreasonable behavior, as the postinst script should
be able to handle such changes to a config file.
I added "set -x" to the postinst to get this debug output to diagnose
the problem:
$ sudo dpkg --configure -a
Setting up apticron (1.1.27) ...
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/apticron.postinst
configure 1.1.25
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_get apticron/notification
+ _db_cmd 'GET apticron/notification'
+ IFS=' '
+ printf '%s\n' 'GET apticron/notification'
+ IFS='
'
+ read -r _db_internal_line
+ RET=root
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ EMAIL=root
+ '[' '!' -d /etc/apticron/ ']'
++ mktemp -t apticron.conf.XXXXXXXXXX
+ tmpfile=/tmp/apticron.conf.DzuXiomPWj
+ cat
+ ucf --debconf-ok --three-way /tmp/apticron.conf.DzuXiomPWj
/etc/apticron/apticron.conf
+ rm -f /tmp/apticron.conf.DzuXiomPWj
+ '[' -f /etc/cron.d/apticron ']'
++ grep -v '^[[:space:]]*\(\#\|$\)' /etc/cron.d/apticron
++ read min hour null
+ time=
dpkg: error processing apticron (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
apticron
In this case, the grep statement is returning nothing, which I think causes
the read to generate the error.
You probably need to do some error checking in the postinst, such as to
grep -q first to make sure there is some ouput from it.
Thanks,
Cameron
-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apticron depends on:
ii apt 0.7.20.1 Advanced front-end for dpkg
ii bsd-mailx 8.1.2-0.20071201cvs-3 A simple mail user agent
ii debconf [debconf-2 1.5.24 Debian configuration management sy
ii ucf 3.0016 Update Configuration File: preserv
Versions of packages apticron recommends:
ii apt-listchanges 2.83 package change history notificatio
ii iproute 20080725-2 networking and traffic control too
apticron suggests no packages.
-- debconf information:
apticron/notification: root
--- End Message ---
--- Begin Message ---
Source: apticron
Source-Version: 1.1.28
We believe that the bug you reported is fixed in the latest version of
apticron, which is due to be installed in the Debian FTP archive:
apticron_1.1.28.dsc
to pool/main/a/apticron/apticron_1.1.28.dsc
apticron_1.1.28.tar.gz
to pool/main/a/apticron/apticron_1.1.28.tar.gz
apticron_1.1.28_all.deb
to pool/main/a/apticron/apticron_1.1.28_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 514...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tiago Bortoletto Vaz <ti...@debian-ba.org> (supplier of updated apticron
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 26 Feb 2009 00:31:49 -0500
Source: apticron
Binary: apticron
Architecture: source all
Version: 1.1.28
Distribution: unstable
Urgency: low
Maintainer: Tiago Bortoletto Vaz <ti...@debian-ba.org>
Changed-By: Tiago Bortoletto Vaz <ti...@debian-ba.org>
Description:
apticron - simple tool to mail about pending package updates
Closes: 514780
Changes:
apticron (1.1.28) unstable; urgency=low
.
* debian/postinst:
+ avoid read error when it receives a null value from grep on creating the
cronjob file. Thanks to Patrick Schoenfeld. (Closes: #514780)
Checksums-Sha1:
bfabcd97512d75c0b870b2b9e9dddc2ffc867340 973 apticron_1.1.28.dsc
f4a2b841cc59130573b42f7c26fc7583f7dab58c 15710 apticron_1.1.28.tar.gz
b0834b70cd2dfe968a44c9f262079cf3758ea88d 14936 apticron_1.1.28_all.deb
Checksums-Sha256:
7eda270a4bc2f6f61462f71a2982b4f6ad290a48c03a7abb43e1d5cc4c0d45e8 973
apticron_1.1.28.dsc
89f49ed962ceca024f1ab05dc1fc626ac8fea7d5936ddb65cdb5b36bc1448ce9 15710
apticron_1.1.28.tar.gz
449a7407447c199d7bcb9091e0865bff11fdfa1004482d1ffb2714da47e584ca 14936
apticron_1.1.28_all.deb
Files:
3d18c4ba3cb54ba6c4f68884adc0421e 973 admin extra apticron_1.1.28.dsc
78c646e4fca35e672d794d1843f184ad 15710 admin extra apticron_1.1.28.tar.gz
aa2c1dbe6793eae2db8dfe92ef619b09 14936 admin extra apticron_1.1.28_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkmmKhQACgkQaQ1iFKUE/spP0gCeOurA+Krbddlwn1WMSkK6ucSb
av4AnieE5jbozdJTh5P56okN7blTO3ak
=kq5f
-----END PGP SIGNATURE-----
--- End Message ---