From ca14a50b17f949a4a25740bdf129ec9e55b055b2 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 8 Nov 2005 21:02:47 +0000 Subject: [PATCH] r1814: * Remove hardcoded pathc to update-modules and gconf-schemas in various script fragments. --- autoscripts/postinst-gconf | 2 +- autoscripts/postinst-modules | 2 +- autoscripts/postrm-modules | 2 +- autoscripts/prerm-gconf | 2 +- debian/changelog | 7 +++++++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/autoscripts/postinst-gconf b/autoscripts/postinst-gconf index f5e7b2b..eec1d51 100644 --- a/autoscripts/postinst-gconf +++ b/autoscripts/postinst-gconf @@ -1,3 +1,3 @@ if [ "$1" = "configure" ]; then - /usr/sbin/gconf-schemas --register #SCHEMAS# + gconf-schemas --register #SCHEMAS# fi diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules index f2342da..8d2c4cb 100644 --- a/autoscripts/postinst-modules +++ b/autoscripts/postinst-modules @@ -1,3 +1,3 @@ -if [ "$1" = "configure" ] && [ -x /sbin/update-modules ]; then +if [ "$1" = "configure" ] && [ -x "`which update-modules 2>/dev/null`" ]; then update-modules >/dev/null || [ "$?" = 3 ] fi diff --git a/autoscripts/postrm-modules b/autoscripts/postrm-modules index 45d65be..35db871 100644 --- a/autoscripts/postrm-modules +++ b/autoscripts/postrm-modules @@ -1,3 +1,3 @@ -if [ -x /sbin/update-modules ]; then +if [ -x "`which update-modules 2>/dev/null`" ]; then update-modules >/dev/null || [ "$?" = 3 ] fi diff --git a/autoscripts/prerm-gconf b/autoscripts/prerm-gconf index 18e911b..6a18816 100644 --- a/autoscripts/prerm-gconf +++ b/autoscripts/prerm-gconf @@ -1,3 +1,3 @@ if [ "$1" = remove ] || [ "$1" = upgrade ]; then - /usr/sbin/gconf-schemas --unregister #SCHEMAS# + gconf-schemas --unregister #SCHEMAS# fi diff --git a/debian/changelog b/debian/changelog index 3f59698..66f4af2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (5.0.4) UNRELEASED; urgency=low + + * Remove hardcoded pathc to update-modules and gconf-schemas in various + script fragments. + + -- Joey Hess Tue, 8 Nov 2005 16:02:09 -0500 + debhelper (5.0.3) unstable; urgency=low * Remove dh_shlibs from binary-indep section of debian/rules. -- 2.39.2