[pkg-boost-commits] r14188 - boost/trunk/debian

smr at alioth.debian.org smr at alioth.debian.org
Mon Mar 31 23:27:02 UTC 2008


Author: smr
Date: 2008-03-31 23:27:01 +0000 (Mon, 31 Mar 2008)
New Revision: 14188

Modified:
   boost/trunk/debian/changelog
   boost/trunk/debian/libboost-dbg.postinst
   boost/trunk/debian/libboost-python-dev.postinst
Log:
Fix postinst script bug that failed when python not installed.

Modified: boost/trunk/debian/changelog
===================================================================
--- boost/trunk/debian/changelog	2008-03-25 07:08:03 UTC (rev 14187)
+++ boost/trunk/debian/changelog	2008-03-31 23:27:01 UTC (rev 14188)
@@ -1,3 +1,12 @@
+boost (1.34.1-10) UNRELEASED; urgency=low
+
+  * debian/libboost-python-dev.postinst:
+  * debian/libboost-python-dbg.postinst: Change from "which pyversions &&
+    ..." (which fails if pyversions not available) to "if which pyversions
+    ...".  Closes: #473607.
+
+ -- Steve M. Robbins <smr at debian.org>  Mon, 31 Mar 2008 18:26:12 -0500
+
 boost (1.34.1-9) unstable; urgency=low
 
   * debian/control:

Modified: boost/trunk/debian/libboost-dbg.postinst
===================================================================
--- boost/trunk/debian/libboost-dbg.postinst	2008-03-25 07:08:03 UTC (rev 14187)
+++ boost/trunk/debian/libboost-dbg.postinst	2008-03-31 23:27:01 UTC (rev 14188)
@@ -4,8 +4,9 @@
 
 update=/usr/share/python/runtime.d/libboost-dbg.rtupdate
 
-which pyversions >/dev/null \
-    && $update rtupdate none $(pyversions -d)
+if which pyversions >/dev/null; then
+    $update rtupdate none $(pyversions -d)
+fi
 
 #DEBHELPER#
 

Modified: boost/trunk/debian/libboost-python-dev.postinst
===================================================================
--- boost/trunk/debian/libboost-python-dev.postinst	2008-03-25 07:08:03 UTC (rev 14187)
+++ boost/trunk/debian/libboost-python-dev.postinst	2008-03-31 23:27:01 UTC (rev 14188)
@@ -4,8 +4,9 @@
 
 update=/usr/share/python/runtime.d/libboost-python-dev.rtupdate
 
-which pyversions >/dev/null \
-    && $update rtupdate none $(pyversions -d)
+if which pyversions >/dev/null; then
+    $update rtupdate none $(pyversions -d)
+fi
 
 #DEBHELPER#
 




More information about the pkg-boost-commits mailing list