[pkg-nvidia-devel] r1388 - in /packages/nvidia-graphics-drivers/trunk/debian: libgl1-nvidia-glx-ia32.preinst libgl1-nvidia-glx.preinst
anbe-guest at users.alioth.debian.org
anbe-guest at users.alioth.debian.org
Sun Jul 18 10:51:03 UTC 2010
Author: anbe-guest
Date: Sun Jul 18 10:51:01 2010
New Revision: 1388
URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=1388
Log:
create the diversion directory
Modified:
packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx-ia32.preinst
packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx.preinst
Modified: packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx-ia32.preinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx-ia32.preinst?rev=1388&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx-ia32.preinst (original)
+++ packages/nvidia-graphics-drivers/trunk/debian/libgl1-nvidia-glx-ia32.preinst Sun Jul 18 10:51:01 2010
@@ -57,8 +57,12 @@
# </target: squeeze>
-case "$1" in
- install|upgrade)
+if [ "$1" = "install" ] || [ "$1" = "upgrade" ]
+then
+
+ # the destination directory for the diversions
+ test -d /usr/lib32/nvidia/diversions || \
+ mkdir -p /usr/lib32/nvidia/diversions || true
# make new diversions
dpkg-divert $DIVERT_QUIET --add --rename --package $DPKG_MAINTSCRIPT_PACKAGE --divert \
@@ -71,8 +75,7 @@
/usr/lib32/nvidia/diversions/libGL.so.1.2 \
/usr/lib32/libGL.so.1.2
- ;;
-esac
+fi
#DEBHELPER#
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=1388&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 18 10:51:01 2010
@@ -68,8 +68,8 @@
# </target: squeeze>
-case "$1" in
- install|upgrade)
+if [ "$1" = "install" ] || [ "$1" = "upgrade" ]
+then
# the destination directory for the diversions
test -d /usr/lib/nvidia/diversions || \
@@ -86,8 +86,7 @@
/usr/lib/nvidia/diversions/libGL.so.1.2 \
/usr/lib/libGL.so.1.2
- ;;
-esac
+fi
# <target: squeeze>
More information about the Pkg-nvidia-devel
mailing list