[pkg-nvidia-devel] r1491 - /packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/
anbe-guest at users.alioth.debian.org
anbe-guest at users.alioth.debian.org
Thu Sep 9 14:20:34 UTC 2010
Author: anbe-guest
Date: Thu Sep 9 14:20:28 2010
New Revision: 1491
URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=1491
Log:
* debian/*.postinst(configure): abort early if DPKG_MAINTSCRIPT_PACKAGE is
not set (usually if called from dpkg-reconfigure, see #560317)
Modified:
packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/changelog
packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives-ia32.postinst
packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives.postinst
packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libglx-nvidia-alternatives.postinst
packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-dev.postinst
packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-ia32.postinst
packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx.postinst
Modified: packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/changelog?rev=1491&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/changelog (original)
+++ packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/changelog Thu Sep 9 14:20:28 2010
@@ -15,6 +15,8 @@
* libgl1-nvidia-alternatives-ia32: abort before configuring on broken
systems, i.e. /usr/lib32 being a symlink pointing to
/emul/ia32-linux/usr/lib (reinstall libc6-i386 to fix)
+ * debian/*.postinst(configure): abort early if DPKG_MAINTSCRIPT_PACKAGE is
+ not set (usually if called from dpkg-reconfigure, see #560317)
* Add myself to Uploaders.
-- Andreas Beckmann <debian at abeckmann.de> Thu, 02 Sep 2010 06:18:24 +0200
Modified: packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives-ia32.postinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives-ia32.postinst?rev=1491&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives-ia32.postinst (original)
+++ packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives-ia32.postinst Thu Sep 9 14:20:28 2010
@@ -33,6 +33,13 @@
if [ "$1" = "configure" ]
then
+
+ # dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (#560317)
+ if [ -z "$DPKG_MAINTSCRIPT_PACKAGE" ]
+ then
+ echo "ERROR: DPKG_MAINTSCRIPT_PACKAGE is not set, usually a bug in dpkg-reconfigure"
+ exit 1
+ fi
# <target: squeeze>
if [ -L "/usr/lib32" ] && \
Modified: packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives.postinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives.postinst?rev=1491&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives.postinst (original)
+++ packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libgl1-nvidia-alternatives.postinst Thu Sep 9 14:20:28 2010
@@ -33,6 +33,13 @@
if [ "$1" = "configure" ]
then
+
+ # dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (#560317)
+ if [ -z "$DPKG_MAINTSCRIPT_PACKAGE" ]
+ then
+ echo "ERROR: DPKG_MAINTSCRIPT_PACKAGE is not set, usually a bug in dpkg-reconfigure"
+ exit 1
+ fi
# <target: squeeze>
# remove libGL.so created by obsolete nvidia-glx* init script
Modified: packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libglx-nvidia-alternatives.postinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libglx-nvidia-alternatives.postinst?rev=1491&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libglx-nvidia-alternatives.postinst (original)
+++ packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/libglx-nvidia-alternatives.postinst Thu Sep 9 14:20:28 2010
@@ -25,6 +25,13 @@
if [ "$1" = "configure" ]
then
+
+ # dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (#560317)
+ if [ -z "$DPKG_MAINTSCRIPT_PACKAGE" ]
+ then
+ echo "ERROR: DPKG_MAINTSCRIPT_PACKAGE is not set, usually a bug in dpkg-reconfigure"
+ exit 1
+ fi
# the destination directory for the diversions
test -d /usr/lib/nvidia/diversions || \
Modified: packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-dev.postinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-dev.postinst?rev=1491&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-dev.postinst (original)
+++ packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-dev.postinst Thu Sep 9 14:20:28 2010
@@ -4,6 +4,13 @@
case "$1" in
configure)
+
+ # dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (#560317)
+ if [ -z "$DPKG_MAINTSCRIPT_PACKAGE" ]
+ then
+ echo "ERROR: DPKG_MAINTSCRIPT_PACKAGE is not set, usually a bug in dpkg-reconfigure"
+ exit 1
+ fi
# <target: squeeze>
if dpkg --compare-versions "$2" lt-nl 195.36.24-1 ; then
Modified: packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-ia32.postinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-ia32.postinst?rev=1491&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-ia32.postinst (original)
+++ packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx-ia32.postinst Thu Sep 9 14:20:28 2010
@@ -4,6 +4,13 @@
case "$1" in
configure)
+
+ # dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (#560317)
+ if [ -z "$DPKG_MAINTSCRIPT_PACKAGE" ]
+ then
+ echo "ERROR: DPKG_MAINTSCRIPT_PACKAGE is not set, usually a bug in dpkg-reconfigure"
+ exit 1
+ fi
# <target: squeeze>
# remove diversion created before the
Modified: packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx.postinst
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx.postinst?rev=1491&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx.postinst (original)
+++ packages/nvidia-graphics-drivers/branches/256.xx-experimental/debian/nvidia-glx.postinst Thu Sep 9 14:20:28 2010
@@ -1,6 +1,18 @@
#!/bin/sh
set -e
+
+if [ "$1" = "configure" ]
+then
+
+ # dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (#560317)
+ if [ -z "$DPKG_MAINTSCRIPT_PACKAGE" ]
+ then
+ echo "ERROR: DPKG_MAINTSCRIPT_PACKAGE is not set, usually a bug in dpkg-reconfigure"
+ exit 1
+ fi
+
+fi
# <target: squeeze>
dpkg-maintscript-helper rm_conffile /etc/default/$DPKG_MAINTSCRIPT_PACKAGE 195.36.24-1~ -- "$@"
More information about the pkg-nvidia-devel
mailing list