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

anbe-guest at users.alioth.debian.org anbe-guest at users.alioth.debian.org
Thu Jun 24 12:16:09 UTC 2010


Author: anbe-guest
Date: Thu Jun 24 12:16:08 2010
New Revision: 1142

URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=1142
Log:
migrate libGL.so* diversions from nvidia-glx to nvidia-libgl1

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

Modified: packages/nvidia-graphics-drivers/trunk/debian/nvidia-libgl1.preinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/nvidia-libgl1.preinst?rev=1142&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/nvidia-libgl1.preinst (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/nvidia-libgl1.preinst Thu Jun 24 12:16:08 2010
@@ -10,6 +10,24 @@
 	# the destination directory for the diversions
 	test -d /usr/lib/nvidia || \
 		mkdir -p /usr/lib/nvidia || true
+
+	# <target: squeeze>
+	# migrate diversions from nvidia-glx
+	for file in libGL.so libGL.so.1 libGL.so.1.2
+	do
+		old_diverter="`dpkg-divert --listpackage /usr/lib/$file`"
+		if [ -n "$old_diverter" ] \
+			&& [ "$old_diverter" != "$DPKG_MAINTSCRIPT_PACKAGE" ]
+		then
+			dpkg-divert --remove --package $old_diverter --divert \
+				/usr/lib/nvidia/$file.xlibmesa \
+				/usr/lib/$file
+			dpkg-divert --add --package $DPKG_MAINTSCRIPT_PACKAGE --divert \
+				/usr/lib/nvidia/$file.xlibmesa \
+				/usr/lib/$file
+		fi
+	done
+	# </target: squeeze>
 
 	# make new diversions
 	dpkg-divert $DIVERT_QUIET --add --rename --package $DPKG_MAINTSCRIPT_PACKAGE --divert \




More information about the Pkg-nvidia-devel mailing list