[Pkg-cyrus-sasl2-commits] r536 - in /cyrus-sasl-2.1/trunk/debian: changelog sasl2-bin.postinst

fabbe at users.alioth.debian.org fabbe at users.alioth.debian.org
Mon Dec 28 10:41:33 UTC 2009


Author: fabbe
Date: Mon Dec 28 10:41:33 2009
New Revision: 536

URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=536
Log:
Don't attempt sasldb upgrade if the database file does not exist.

Modified:
    cyrus-sasl-2.1/trunk/debian/changelog
    cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst

Modified: cyrus-sasl-2.1/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/changelog?rev=536&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/changelog (original)
+++ cyrus-sasl-2.1/trunk/debian/changelog Mon Dec 28 10:41:33 2009
@@ -10,8 +10,10 @@
   * debian/rules, debian/sasl2-bin.postinst, debian/sasl2-bin.saslauthd.init:
     No longer explicitly run stop init script on shutdown and reboot.
     (Closes: #560748)
-
- -- Fabian Fagerholm <fabbe at debian.org>  Mon, 28 Dec 2009 12:08:04 +0200
+  * debian/sasl2-bin.postinst: Don't attempt sasldb upgrade if the database
+    file does not exist. (Closes: #521852)
+
+ -- Fabian Fagerholm <fabbe at debian.org>  Mon, 28 Dec 2009 12:40:46 +0200
 
 cyrus-sasl2 (2.1.23.dfsg1-3) unstable; urgency=low
 

Modified: cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst?rev=536&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst (original)
+++ cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst Mon Dec 28 10:41:33 2009
@@ -29,8 +29,8 @@
 			if [ -e $SASLDB_FILE ] && \
 				[ `sasldblistusers2 | wc -l` -eq 0 ]; then
 				rm $SASLDB_FILE
-			else
-				# The database had users, begin upgrade procedure
+			elif [ -e $SASLDB_FILE ]; then
+				# The database exists and has users, begin upgrade procedure
 
 				# Make backup and handle errors
 				db_get cyrus-sasl2/backup-sasldb2




More information about the Pkg-cyrus-sasl2-commits mailing list