[Pkg-dspam-commits] [pkg-dspam-commits] r185 - branches/lenny/debian

Kurt B. Kaiser kbk-guest at alioth.debian.org
Thu Sep 11 21:02:25 UTC 2008


Author: kbk-guest
Date: Thu Sep 11 21:02:25 2008
New Revision: 185

Log:
cron shouldn't clean the mysql db if dspam was removed.
(See -r171 in trunk)


Modified:
   branches/lenny/debian/changelog
   branches/lenny/debian/libdspam7-drv-mysql.cron.daily

Modified: branches/lenny/debian/changelog
==============================================================================
--- branches/lenny/debian/changelog	(original)
+++ branches/lenny/debian/changelog	Thu Sep 11 21:02:25 2008
@@ -7,8 +7,9 @@
     with dspam-webfrontend.preinst for versions prior to 3.6.8-9.
   * Fix regression from #388140: remote mySQL server fails (Closes: #481755)
   * /etc/init.d/dspam ignored $USER (LP: #232543)(Closes: #483868)
+  * cron shouldn't try to clean mysql db if dspam was removed (Closes: 484889)
 
- -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org>  Thu, 11 Sep 2008 16:49:12 -0400
+ -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org>  Thu, 11 Sep 2008 16:58:59 -0400
 
 dspam (3.6.8-8.1) unstable; urgency=low
 

Modified: branches/lenny/debian/libdspam7-drv-mysql.cron.daily
==============================================================================
--- branches/lenny/debian/libdspam7-drv-mysql.cron.daily	(original)
+++ branches/lenny/debian/libdspam7-drv-mysql.cron.daily	Thu Sep 11 21:02:25 2008
@@ -7,6 +7,9 @@
 PURGE=/usr/share/doc/libdspam7-drv-mysql/purge-4.1.sql
 MYSQLCONF_PASSWD=/var/run/libdspam7-drv-mysql.cron.passwd
 
+# If the purge doesn't exist, don't do anything.
+[ ! -f "$PURGE" ] && exit 0
+
 if grep -q "^StorageDriver.*mysql_drv.so" $DSPAMCONF; then
   if [ -x /usr/bin/mysql ]; then
     MYSQL_USER="`grep "^MySQLUser" $MYSQLCONF | awk '{print $2}'`"



More information about the Pkg-dspam-commits mailing list