From e8b9fc5324e8c645d0c18d165e4b7f7bc94c8242 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 10 Jun 2001 19:25:01 +0000 Subject: [PATCH] r477: * Check that update-modules is present before running it, since modutils is not essential. Closes: #100430 --- autoscripts/postinst-modules | 2 +- autoscripts/postinst-xaw | 2 +- autoscripts/postrm-menu-method | 2 +- autoscripts/postrm-modules | 4 +++- autoscripts/postrm-xaw | 2 +- debian/changelog | 7 +++++++ 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules index a7e7c77..b25a1c1 100644 --- a/autoscripts/postinst-modules +++ b/autoscripts/postinst-modules @@ -1,3 +1,3 @@ -if [ "$1" = "configure" ]; then +if [ "$1" = "configure" -a -x /sbin/update-modules ]; then update-modules fi diff --git a/autoscripts/postinst-xaw b/autoscripts/postinst-xaw index 324058f..035aa26 100644 --- a/autoscripts/postinst-xaw +++ b/autoscripts/postinst-xaw @@ -1,5 +1,5 @@ if [ "$1" = "configure" ]; then - if test -x /usr/sbin/update-xaw-wrappers; then + if [ -x /usr/sbin/update-xaw-wrappers ]; then /usr/sbin/update-xaw-wrappers fi for opts in #OPTS#; do diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method index 3e63f2f..2e0faed 100644 --- a/autoscripts/postrm-menu-method +++ b/autoscripts/postrm-menu-method @@ -1,3 +1,3 @@ inst=/etc/menu-methods/#PACKAGE# if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi -if [ -x /usr/bin/update-menus ] ; then update-menus; fi +if [ -x /usr/bin/update-menus ]; then update-menus; fi diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules index 7abe0c0..fdf249e 100644 --- a/autoscripts/postrm-modules +++ b/autoscripts/postrm-modules @@ -1 +1,3 @@ -update-modules +if [ -x /sbin/update-modules ]; then + update-modules +fi diff --git a/autoscripts/postrm-xaw b/autoscripts/postrm-xaw index b8d718e..14d13eb 100644 --- a/autoscripts/postrm-xaw +++ b/autoscripts/postrm-xaw @@ -1,3 +1,3 @@ -if test -x /usr/sbin/update-xaw-wrappers; then +if [ -x /usr/sbin/update-xaw-wrappers ]; then /usr/sbin/update-xaw-wrappers fi diff --git a/debian/changelog b/debian/changelog index edce5fb..4ca7abe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (3.0.32) unstable; urgency=low + + * Check that update-modules is present before running it, since modutils + is not essential. Closes: #100430 + + -- Joey Hess Sun, 10 Jun 2001 15:13:51 -0400 + debhelper (3.0.31) unstable; urgency=low * Remove dh_testversion from example rules file, Closes: #99901 -- 2.39.2