[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r1931 - glibc-package/branches/glibc-2.5/debian/debhelper.in



Author: aurel32
Date: 2007-02-03 21:11:27 +0100 (Sat, 03 Feb 2007)
New Revision: 1931

Modified:
   glibc-package/branches/glibc-2.5/debian/debhelper.in/libc.postinst
Log:
Same fix for experimental


Modified: glibc-package/branches/glibc-2.5/debian/debhelper.in/libc.postinst
===================================================================
--- glibc-package/branches/glibc-2.5/debian/debhelper.in/libc.postinst	2007-02-03 20:09:18 UTC (rev 1930)
+++ glibc-package/branches/glibc-2.5/debian/debhelper.in/libc.postinst	2007-02-03 20:11:27 UTC (rev 1931)
@@ -132,14 +132,16 @@
     fi
 
     # Add support for /etc/ld.so.conf.d
-    if [ -e /etc/ld.so.conf ]; then
-	[ -z "$(tail -n 1 /etc/ld.so.conf)" ] || echo >> /etc/ld.so.conf
-    else
-	touch /etc/ld.so.conf
+    if [ -z "$preversion" ] || dpkg --compare-versions $preversion lt 2.3.6-16; then
+	if [ -e /etc/ld.so.conf ]; then
+	    [ -z "$(tail -n 1 /etc/ld.so.conf)" ] || echo >> /etc/ld.so.conf
+	else
+	    touch /etc/ld.so.conf
+	fi
+	if ! grep -q '^include /etc/ld.so.conf.d/.*\.conf$' /etc/ld.so.conf ; then
+	    echo 'include /etc/ld.so.conf.d/*.conf' >> /etc/ld.so.conf
+	fi
     fi
-    if ! grep -q '^include /etc/ld.so.conf.d/.*\.conf$' /etc/ld.so.conf ; then
-	echo 'include /etc/ld.so.conf.d/*.conf' >> /etc/ld.so.conf
-    fi
 
     # Handle upgrades when libc-opt package has been installed.
     # We check the version between the current installed libc and libc-opt.



Reply to: