[Blends-commit] r1995 - in blends/trunk/blends: debian templates

Debian Pure Blends Subversion Commit noreply at alioth.debian.org
Mon Nov 9 09:25:24 UTC 2009


Author: tille
Date: Mon Nov  9 09:25:23 2009
New Revision: 1995
URL: http://svn.debian.org/viewsvn/blends?rev=1995&view=rev

Log:
Make sure installation of config package will not fail even if there is no specific config file


Modified:
   blends/trunk/blends/debian/changelog
   blends/trunk/blends/templates/config.postinst

Modified: blends/trunk/blends/debian/changelog
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/blends/debian/changelog?rev=1995&view=diff&r1=1995&r2=1994&p1=blends/trunk/blends/debian/changelog&p2=blends/trunk/blends/debian/changelog
==============================================================================
--- blends/trunk/blends/debian/changelog	(original)
+++ blends/trunk/blends/debian/changelog	Mon Nov  9 09:25:23 2009
@@ -8,6 +8,11 @@
   * devtools/rules: Do not remove the autogenerated files
     automatically in get-orig-source target because there are
     people who explicitly like to commit these to SVN
+  * templates/config.postinst: Return true even if config file is
+    missing.  In principle this should not happen, but there are
+    two bug reports about this problem (#550140 and #553632) which
+    will be fixed by this workaround.  Most probably this is a side
+    effect from renaming.
 
  -- Andreas Tille <tille at debian.org>  Wed, 04 Nov 2009 22:25:05 +0100
 

Modified: blends/trunk/blends/templates/config.postinst
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/blends/templates/config.postinst?rev=1995&view=diff&r1=1995&r2=1994&p1=blends/trunk/blends/templates/config.postinst&p2=blends/trunk/blends/templates/config.postinst
==============================================================================
--- blends/trunk/blends/templates/config.postinst	(original)
+++ blends/trunk/blends/templates/config.postinst	Mon Nov  9 09:25:23 2009
@@ -8,8 +8,11 @@
 . /etc/blends/blends.conf
 
 if [ ! -f /etc/blends/#BLEND#/#BLEND#.conf ] ; then
-   echo "#BLENDNAME# configuration file /etc/blends/#BLEND#/#BLEND#.conf is missing."
-   exit -1
+    # This might happen in some strange cases but should not prevent the packages
+    # from beeing successfully installed so exit with zero here
+    echo "#BLENDNAME# configuration file /etc/blends/#BLEND#/#BLEND#.conf is missing."
+    echo "Reinstalling package #BLEND#-config might fix this problem."
+    exit 0
 fi
 . /etc/blends/#BLEND#/#BLEND#.conf
 



More information about the Blends-commit mailing list