[SCM] debian-live/live-initramfs branch, master, updated. 1.128.1-1-4-gfa39f4a

Daniel Baumann daniel at debian.org
Tue Apr 15 20:35:48 UTC 2008


The following commit has been merged in the master branch:
commit fa39f4a98cd735a43b3af28172ee798d502908db
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Apr 15 22:35:43 2008 +0200

    Adjusting code formating in maintainer scripts.

diff --git a/debian/postinst b/debian/postinst
index 71d71e3..b2d37bb 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,19 +6,20 @@ case "$(ls -l /boot/vmlinuz-* | wc -l)" in
 		# which will use dpkg-trigger inside update-initramfs
 		INITRAMFS_ARGS="-u"
 		;;
+
 	*)
 		INITRAMFS_ARGS="-u -k all"
 		;;
 esac
 
-if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \
-   dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18'
+if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \
+	dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18"
 then
 	# this activates the trigger, if triggers are working
 	update-initramfs ${INITRAMFS_ARGS}
 else
 	# force it to actually happen
-	DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS}
+	DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS}
 fi
 
 #DEBHELPER#
diff --git a/debian/postrm b/debian/postrm
index 71d71e3..b2d37bb 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -6,19 +6,20 @@ case "$(ls -l /boot/vmlinuz-* | wc -l)" in
 		# which will use dpkg-trigger inside update-initramfs
 		INITRAMFS_ARGS="-u"
 		;;
+
 	*)
 		INITRAMFS_ARGS="-u -k all"
 		;;
 esac
 
-if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \
-   dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18'
+if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \
+	dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18"
 then
 	# this activates the trigger, if triggers are working
 	update-initramfs ${INITRAMFS_ARGS}
 else
 	# force it to actually happen
-	DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS}
+	DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS}
 fi
 
 #DEBHELPER#

-- 
debian-live/live-initramfs



More information about the debian-live-changes mailing list