[Pkg-dspam-commits] [pkg-dspam-commits] r129 - trunk/debian

Kurt B. Kaiser kbk-guest at alioth.debian.org
Mon Jan 14 03:49:46 UTC 2008


Author: kbk-guest
Date: Mon Jan 14 03:49:46 2008
New Revision: 129

Log:
Eliminate a bashism from libdspam7-drv-mysql.cron.daily (from ubuntu)


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

Modified: trunk/debian/changelog
==============================================================================
--- trunk/debian/changelog	(original)
+++ trunk/debian/changelog	Mon Jan 14 03:49:46 2008
@@ -10,8 +10,9 @@
   * Switch from ${Source-Version} to ${source:Version} in control file.
   * Remove postgresql-dev, no longer in archive. (Closes: #429967)
   * Add XS-DM-Upload-Allowed field to control file.
+  * Eliminate a bashism from libdspam7-drv-mysql.cron.daily (from ubuntu)
 
- -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org>  Sun, 13 Jan 2008 22:06:03 -0500
+ -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org>  Sun, 13 Jan 2008 22:45:11 -0500
 
 dspam (3.6.8-5.1) unstable; urgency=medium
 

Modified: trunk/debian/libdspam7-drv-mysql.cron.daily
==============================================================================
--- trunk/debian/libdspam7-drv-mysql.cron.daily	(original)
+++ trunk/debian/libdspam7-drv-mysql.cron.daily	Mon Jan 14 03:49:46 2008
@@ -21,8 +21,10 @@
     umask "$UMASK_OLD"
 
     # If host is empty or starting with a / assume it's localhost.
-    if [ -z "$MYSQL_HOST" ] || [ "${MYSQL_HOST:0:1}" = "/" ]; then
-        /usr/bin/mysql --defaults-extra-file=$MYSQLCONF_PASSWD --user=$MYSQL_USER $MYSQL_DB < $PURGE
+    if [ -z "$MYSQL_HOST" ] || \
+       [ ` echo "${MYSQL_HOST}" | cut -c1 ` = "/" ]; then
+        /usr/bin/mysql --defaults-extra-file=$MYSQLCONF_PASSWD \
+	               --user=$MYSQL_USER $MYSQL_DB < $PURGE
     else
         if echo "$MYSQL_HOST" | grep "^/" > /dev/null 2>&1 ; then
             # Assume it is a socket:



More information about the Pkg-dspam-commits mailing list