[pkg-nvidia-devel] r1295 - /packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx.preinst

anbe-guest at users.alioth.debian.org anbe-guest at users.alioth.debian.org
Sun Jul 4 18:52:15 UTC 2010


Author: anbe-guest
Date: Sun Jul  4 18:52:10 2010
New Revision: 1295

URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=1295
Log:
change the libGL.so test to not rely on -d /usr/share/doc/libgl1-mesa-dev

Modified:
    packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx.preinst

Modified: packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx.preinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx.preinst?rev=1295&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx.preinst (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx.preinst Sun Jul  4 18:52:10 2010
@@ -20,9 +20,12 @@
 	# <target: squeeze>
 	# remove libGL.so created by obsolete nvidia-glx* init script
 	# otherwise we dpkg-divert --rename an unowned file
-	if [ -L /usr/lib/libGL.so ] && [ ! -d /usr/share/doc/libgl1-mesa-dev ]
+	if [ -L /usr/lib/libGL.so ] && \
+		( [ ! -f /usr/lib/libGL.so ] \
+		|| [ "`readlink /usr/lib/libGL.so`" != "libGL.so.1" ] \
+		|| [ ! -e /usr/lib/libGL.so.1.2 ] )
 	then
-		echo "Removing inappropriate /usr/lib/libGL.so"
+		echo "Removing /usr/lib/libGL.so from unknown origin"
 		rm -f /usr/lib/libGL.so
 	fi
 	# </target: squeeze>




More information about the Pkg-nvidia-devel mailing list