On Sat, Aug 02, 2008 at 10:12:03AM +0200, Filippo Giunchedi wrote:
> Hi,
> it seems that sks cron files are giving output when the package itself is 
> removed
> (REMOVE) or its dependencies (AUTOREMOVE). See also policy 9.5 "Cron jobs" 
> about this issue.
> 
> log available at:
> http://svn.debian.org/wsvn/collab-qa/crontest/2008-08-02/logs/sks_1.1.0-4_sid.cronlog?op=file
> 
> reported below:
> REMOVE CRON.DAILY [] ["find: `/var/spool/sks': No such file or directory\n", 
> "find: `/var/spool/sks/failed_messages': No such file or directory\n"]
> AUTOREMOVE CRON.DAILY [] ["find: `/var/spool/sks': No such file or 
> directory\n", "find: `/var/spool/sks/failed_messages': No such file or 
> directory\n"]
> 
> please check if the directory is there before the command.

I've prepared an NMU for this bug, debdiff attached. 
I'm going to upload it to DELAYED in a few days if that is okay.

filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

It is easier to change the specification to fit the program than vice versa.
-- Alan Perlis
diff -u sks-1.1.0/debian/changelog sks-1.1.0/debian/changelog
--- sks-1.1.0/debian/changelog
+++ sks-1.1.0/debian/changelog
@@ -1,3 +1,10 @@
+sks (1.1.0-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Check spool directories for existance (Closes: #493335) 
+
+ -- Filippo Giunchedi <[EMAIL PROTECTED]>  Thu, 14 Aug 2008 11:18:48 +0200
+
 sks (1.1.0-4) unstable; urgency=low
 
   * fix cron.daily to call correct db*_archive and print unwanted messages
diff -u sks-1.1.0/debian/sks.cron.daily sks-1.1.0/debian/sks.cron.daily
--- sks-1.1.0/debian/sks.cron.daily
+++ sks-1.1.0/debian/sks.cron.daily
@@ -11,9 +11,13 @@
 # eventhing that hasn't been touched in the last 2 weeks
 # is probably old and the result of a host that changed IP.
 
+[ -d /var/spool/sks ] || exit 0
+
 find /var/spool/sks -type f -name 'diff-*.txt' -mtime +14 | xargs --no-run-if-empty rm -f
 
 # Also remove failed messages
+[ -d /var/spool/sks/failed_messages ] || exit 0
+
 find /var/spool/sks/failed_messages -type f -name 'msg-*.ready' -mtime +14 | xargs --no-run-if-empty rm -f
 
 [ "$REMOVE_DB_LOGS" = "no" ] && exit 0

Reply via email to