[Pkg-fglrx-devel] r732 - fglrx-driver/trunk/debian

Andreas Beckmann anbe-guest at alioth.debian.org
Thu Aug 18 08:47:27 UTC 2011


Author: anbe-guest
Date: 2011-08-18 08:47:26 +0000 (Thu, 18 Aug 2011)
New Revision: 732

Removed:
   fglrx-driver/trunk/debian/fglrx-glx-ia32.postinst
Modified:
   fglrx-driver/trunk/debian/changelog
   fglrx-driver/trunk/debian/fglrx-driver.postinst
   fglrx-driver/trunk/debian/fglrx-driver.postrm
   fglrx-driver/trunk/debian/fglrx-glx-ia32.postrm
   fglrx-driver/trunk/debian/fglrx-glx-ia32.preinst
   fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst
   fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm
Log:
Cleanup maintainer scripts.

Modified: fglrx-driver/trunk/debian/changelog
===================================================================
--- fglrx-driver/trunk/debian/changelog	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/changelog	2011-08-18 08:47:26 UTC (rev 732)
@@ -6,6 +6,7 @@
     kernel module in 32-bit userspace, i.e. for linux-image-*-amd64 on i386.
     (Closes: #636055)
   * Override the experimental lintian tag shlib-calls-exit.
+  * Cleanup maintainer scripts.
 
  -- Andreas Beckmann <debian at abeckmann.de>  Thu, 18 Aug 2011 09:46:11 +0200
 

Modified: fglrx-driver/trunk/debian/fglrx-driver.postinst
===================================================================
--- fglrx-driver/trunk/debian/fglrx-driver.postinst	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/fglrx-driver.postinst	2011-08-18 08:47:26 UTC (rev 732)
@@ -1,9 +1,8 @@
 #!/bin/sh
-
 set -e
 
-case "$1" in
-	configure)
+if [ "$1" = "configure" ]; then
+
 		if [ -f /usr/lib/fglrx/diversions/libdri.so ]; then
 			dpkg-divert --package fglrx-driver --rename --remove /usr/lib/xorg/modules/extensions/libdri.so || true
 		fi
@@ -18,9 +17,7 @@
 			echo "be sufficient for most use cases."
 			echo "**********************************************"
 		fi
-	;;
-esac
 
-#DEBHELPER#
+fi
 
-exit 0
+#DEBHELPER#

Modified: fglrx-driver/trunk/debian/fglrx-driver.postrm
===================================================================
--- fglrx-driver/trunk/debian/fglrx-driver.postrm	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/fglrx-driver.postrm	2011-08-18 08:47:26 UTC (rev 732)
@@ -1,16 +1,12 @@
 #!/bin/sh
-
 set -e
 
-case "$1" in
-	purge)
+if [ "$1" = "purge" ]; then
+
 		if [ -f /etc/ati/amdpcsdb ]; then
 			rm /etc/ati/amdpcsdb
 		fi
-	;;
-    *)
-        exit 0
-    ;;
-esac
 
+fi
+
 #DEBHELPER#

Deleted: fglrx-driver/trunk/debian/fglrx-glx-ia32.postinst
===================================================================
--- fglrx-driver/trunk/debian/fglrx-glx-ia32.postinst	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/fglrx-glx-ia32.postinst	2011-08-18 08:47:26 UTC (rev 732)
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "$1" in
-    configure)
-          ldconfig
-    ;;
-esac
-
-#DEBHELPER#

Modified: fglrx-driver/trunk/debian/fglrx-glx-ia32.postrm
===================================================================
--- fglrx-driver/trunk/debian/fglrx-glx-ia32.postrm	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/fglrx-glx-ia32.postrm	2011-08-18 08:47:26 UTC (rev 732)
@@ -1,13 +1,12 @@
 #!/bin/sh
-
 set -e
 
 if [ "$1" = "remove" ]; then
+
 		dpkg-divert --package fglrx-glx-ia32 --rename --remove /usr/lib32/libGL.so.1.2
 		dpkg-divert --package fglrx-glx-ia32 --rename --remove /usr/lib32/libGL.so.1
 		rmdir /usr/lib32/fglrx/diversions /usr/lib32/fglrx 2>/dev/null || true
+
 fi
 
 #DEBHELPER#
-
-exit 0

Modified: fglrx-driver/trunk/debian/fglrx-glx-ia32.preinst
===================================================================
--- fglrx-driver/trunk/debian/fglrx-glx-ia32.preinst	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/fglrx-glx-ia32.preinst	2011-08-18 08:47:26 UTC (rev 732)
@@ -1,13 +1,12 @@
 #!/bin/sh
-
 set -e
 
-case "$1" in
-    install|upgrade)
+if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
+
 	mkdir -p /usr/lib32/fglrx/diversions
 	dpkg-divert --package fglrx-glx-ia32 --divert /usr/lib32/fglrx/diversions/libGL.so.1.2 --rename /usr/lib32/libGL.so.1.2
 	dpkg-divert --package fglrx-glx-ia32 --divert /usr/lib32/fglrx/diversions/libGL.so.1 --rename /usr/lib32/libGL.so.1
-    ;;
-esac
 
+fi
+
 #DEBHELPER#

Modified: fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst
===================================================================
--- fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/fglrx-modules-dkms.postinst	2011-08-18 08:47:26 UTC (rev 732)
@@ -1,5 +1,4 @@
 #!/bin/sh
-
 set -e
 
 package=fglrx-modules-dkms
@@ -24,5 +23,3 @@
 fi
 
 #DEBHELPER#
-
-exit 0

Modified: fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm
===================================================================
--- fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm	2011-08-18 08:25:06 UTC (rev 731)
+++ fglrx-driver/trunk/debian/fglrx-modules-dkms.prerm	2011-08-18 08:47:26 UTC (rev 732)
@@ -1,5 +1,4 @@
 #!/bin/sh
-
 set -e
 
 package=fglrx-modules-dkms
@@ -10,5 +9,3 @@
 dkms remove -m fglrx -v "$version" --all || true
 
 #DEBHELPER#
-
-exit 0




More information about the Pkg-fglrx-devel mailing list