Your message dated Wed, 23 May 2012 01:32:12 +0000
with message-id <[email protected]>
and subject line Bug#657126: fixed in apticron 1.1.55
has caused the Debian Bug report #657126,
regarding Add an option to send report even there is no updates
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.)
--
657126: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657126
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apticron
Version: 1.1.52
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I was asked at work to modify apticron in order to send "no updates"
reports as it shows that :
1. apticron is working correctly
2. there is no problem to send email from the "apticronned" server
Indeed, without this "no updates" mail, you can't say if there is no
updates or if there is a mail problem.
I attached a patch with my modifications in apticron itself and in the
postint script (because I inluded some options in the config file).
I think I'm not the only one who could use this feature.
Regards,
Luc
- -- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apticron depends on:
ii apt 0.8.16~exp11
ii bsd-mailx [mailx] 8.1.2-0.20111106cvs-1
ii cron 3.0pl1-120
ii debconf [debconf-2.0] 1.5.41
ii dpkg 1.16.1.2
ii ucf 3.0025+nmu2
Versions of packages apticron recommends:
ii apt-listchanges <none>
ii iproute 20120105-1
apticron suggests no packages.
- -- debconf information excluded
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBAgAGBQJPHoRUAAoJEOqGjhLQJX48eioP/3M8QlgAANh24fk9fhsR96eJ
vNctm1LocdEV2AIBv0BtEBYxvOKcE1z3AGgwsx9w3+btfysvQQRM/J8M8M48KXw+
JPN3O7GdsACkDejZFQlrvkqz2Dpr2gXiwlof0Jib1ZgvOy5fBcEAOQvYlsg3ROp0
LANE4VuNBlHE5HGxIufnVjWL4iZHdm6xZysaU02lzGKZ9zKm0IBogGoUr5WeGvxQ
Ft5VgXFqAIeo5n5rhvMVzW7tUw6Tk9MP0a3XP8AoqPaU32t0sf8tsNP6ldghF++2
1+dxkwDWadlSNUyVe7tqUi2Kwy1kroC8ojsPRfJa9+8ASYx26xiq1pRj5idWNxVc
Ld6OpOgnchMEJPOIdDDbdVic/l3z/CcBI96THA8UN+bGvjakIBA3H3txH9LedqzU
4PynK3/yNsQBLPBTVJHkXfC+Pb/D3Nwnvlv+rfDjNdumYa330bQGWCo575Fx8/W2
yCbP0w0Vl63EvSH7DOBhGrd1G/q62NZv1P9mMDu+c7LIRK4t7F6fdTY0XxCtMzTg
PO1XwAlrgjCgeQRZ9hSlA+8opOLZfS2MtpC119wXiOCbZboik1hITt423gIoEOy+
DcQSID2cDonvyAuAgWHBeJ3mleAGiw0gF6qvn5OlJ59v9ryYImqSvQzMdWSi6flv
/r15cmkXcTvYzyRU0z5k
=cRGK
-----END PGP SIGNATURE-----
diff --git a/apticron b/apticron
index ce1a39c..3ed5d55 100755
--- a/apticron
+++ b/apticron
@@ -151,6 +151,13 @@ else
MAILX_SUBJECT="$NUM_PACKAGES $DISTRIB_ID package update(s) for $SYSTEM"
fi
+# Custom no update subject
+if [ -n "$CUSTOM_NO_UPDATES_SUBJECT" ] ; then
+ MAILX_NO_UPDATE_SUBJECT=$(eval "echo \"${CUSTOM_NO_UPDATES_SUBJECT}\"")
+else
+ MAILX_NO_UPDATE_SUBJECT="No updates for $SYSTEM"
+fi
+
# packages already reported won't be reported again if DIFF_ONLY option is marked
LAST_RUN_FILE="/var/lib/apticron/last_run"
if [ "$DIFF_ONLY" = "1" ] && [ -e "$LAST_RUN_FILE" ]; then
@@ -262,6 +269,13 @@ EOF
) 2>&1 | Mailx -s "$MAILX_SUBJECT" $EMAIL
+elif [ "$NOTIFY_NO_UPDATES" = "1" ] ; then
+ (
+ /bin/cat <<EOF
+No new packages today.
+EOF
+
+ ) 2>&1 | Mailx -s "$MAILX_NO_UPDATE_SUBJECT" $EMAIL
fi
# updating the last_run file
diff --git a/debian/postinst b/debian/postinst
index da665e9..c960c80 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -103,6 +103,12 @@ EMAIL="$EMAIL"
# NOTIFY_NEW="0"
#
+# Set NOTIFY_NO_UPDATES="0" if you don't want to be notified when there is no
+# new versions. Set to 1 could assure you that apticron works well.
+#
+# NOTIFY_NO_UPDATES="0"
+
+#
# Set CUSTOM_SUBJECT if you want to replace the default subject used in
# the notification e-mails. This may help filtering/sorting client-side e-mail.
# If you want to use internal vars please use single quotes here. Ex:
@@ -110,6 +116,14 @@ EMAIL="$EMAIL"
#
# CUSTOM_SUBJECT=""
+# Set CUSTOM_NO_UPDATES_SUBJECT if you want to replace the default subject used
+# in the no update notification e-mails. This may help filtering/sorting
+# client-side e-mail.
+# If you want to use internal vars please use single quotes here. Ex:
+# \$CUSTOM_NO_UPDATES_SUBJECT='[apticron] \$SYSTEM: no updates'
+#
+# CUSTOM_NO_UPDATES_SUBJECT=""
+
#
# Set CUSTOM_FROM if you want to replace the default sender by changing the
# 'From:' field used in the notification e-mails. Your default sender will
--- End Message ---
--- Begin Message ---
Source: apticron
Source-Version: 1.1.55
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.55.dsc
to main/a/apticron/apticron_1.1.55.dsc
apticron_1.1.55.tar.gz
to main/a/apticron/apticron_1.1.55.tar.gz
apticron_1.1.55_all.deb
to main/a/apticron/apticron_1.1.55_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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tiago Bortoletto Vaz <[email protected]> (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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 22 May 2012 21:12:39 -0400
Source: apticron
Binary: apticron
Architecture: source all
Version: 1.1.55
Distribution: unstable
Urgency: low
Maintainer: Tiago Bortoletto Vaz <[email protected]>
Changed-By: Tiago Bortoletto Vaz <[email protected]>
Description:
apticron - Simple tool to mail about pending package updates
Closes: 657126 673985
Changes:
apticron (1.1.55) unstable; urgency=low
.
* Add an option to send report even there is no updates. Thanks to Luc Didry.
(Closes: #657126)
* Depends on bzip2. Thanks to Erik Braun. (Closes: #673985)
Checksums-Sha1:
6e9789fc135be2bf176fdbcbc4a1b700bccb4618 953 apticron_1.1.55.dsc
03efb97a30cb2d60e9181e4355e88a9cb98fa4ee 21547 apticron_1.1.55.tar.gz
045e8df8854da740bba32b18f8beb9b9552cb134 20128 apticron_1.1.55_all.deb
Checksums-Sha256:
fcdcf5616af60921f7a897477059fac7f0a5e28cc2a8b69d576fcadea9bf0f48 953
apticron_1.1.55.dsc
6c23d5b5f7dcea2d5ebcffb880ff05e7374ca35f5d556d6d3e17483070834c0d 21547
apticron_1.1.55.tar.gz
11cb7a737562cff5371e85c0643816cb69e5f7e069cd1ad0ccd543ce1c059d63 20128
apticron_1.1.55_all.deb
Files:
3ca66658d4ef020b43de3421eaad7baf 953 admin extra apticron_1.1.55.dsc
65502750a0a954af716c20f0af42c637 21547 admin extra apticron_1.1.55.tar.gz
e81d795ef98bc8d0cc02724bb2a7a91e 20128 admin extra apticron_1.1.55_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAk+8O5YACgkQaQ1iFKUE/soV6wCeMulWGs79xqk7aFXaFXVfaEPM
p6wAoJWXLiyBZY0nDf78f9TK7fQ19uie
=3MsB
-----END PGP SIGNATURE-----
--- End Message ---