Followup-For: Bug #663030 Control: tag -1 + patch Hi,
I'm attaching a small fix for the cronjob to exit gracefully after the package was removed. I intend to NMU spotweb with this patch and hope we can still get this fixed for wheezy. Andreas
diffstat for spotweb-20111002+dfsg spotweb-20111002+dfsg changelog | 8 ++++++++ spotweb.cron.hourly | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff -Nru spotweb-20111002+dfsg/debian/changelog spotweb-20111002+dfsg/debian/changelog --- spotweb-20111002+dfsg/debian/changelog 2012-01-10 16:22:39.000000000 +0100 +++ spotweb-20111002+dfsg/debian/changelog 2013-01-30 20:56:16.000000000 +0100 @@ -1,3 +1,11 @@ +spotweb (20111002+dfsg-4.1) unstable; urgency=low + + * Non-maintainer upload. + * spotweb.cron.hourly: Gracefully skip the cronjob with an exit code of 0 + after the package was removed. (Closes: #663030) + + -- Andreas Beckmann <a...@debian.org> Wed, 30 Jan 2013 20:52:47 +0100 + spotweb (20111002+dfsg-4) unstable; urgency=low * Update Dutch debconf translation diff -Nru spotweb-20111002+dfsg/debian/spotweb.cron.hourly spotweb-20111002+dfsg/debian/spotweb.cron.hourly --- spotweb-20111002+dfsg/debian/spotweb.cron.hourly 2012-01-10 16:22:39.000000000 +0100 +++ spotweb-20111002+dfsg/debian/spotweb.cron.hourly 2013-01-30 20:25:51.000000000 +0100 @@ -1,3 +1,5 @@ #!/bin/sh -[ -e /usr/share/spotweb/scripts/retrieve.sh ] && /usr/share/spotweb/scripts/retrieve.sh >> /var/log/spotweb.log +test -x /usr/share/spotweb/scripts/retrieve.sh || exit 0 + +/usr/share/spotweb/scripts/retrieve.sh >> /var/log/spotweb.log