[pkg-nvidia-devel] r1292 - /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 17:29:52 UTC 2010


Author: anbe-guest
Date: Sun Jul  4 17:29:48 2010
New Revision: 1292

URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=1292
Log:
remove inappropriate libGL.so before creating the diversions

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=1292&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 17:29:48 2010
@@ -15,6 +15,16 @@
 	# the destination directory for the diversions
 	test -d /usr/lib/nvidia/diversions || \
 		mkdir -p /usr/lib/nvidia/diversions || true
+
+	# <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 ]
+	then
+		echo "Removing inappropriate /usr/lib/libGL.so"
+		rm -f /usr/lib/libGL.so
+	fi
+	# </target: squeeze>
 
 	# <target: squeeze>
 	# take over diversions from nvidia-glx{,-legacy-*xx}




More information about the Pkg-nvidia-devel mailing list