From 1761e99d415d54d6293a611cf25bde66c8a9c634 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 21 Dec 2000 19:35:32 +0000 Subject: [PATCH] r403: * dh_installwm: Moved update-alternatives --remove call to prerm, Closes: #80209 * ALso guarded all update-alternatives --remove calls. --- autoscripts/postrm-wm | 2 -- autoscripts/prerm-wm | 3 +++ autoscripts/prerm-xaw | 9 +++++---- debian/changelog | 8 ++++++++ 4 files changed, 16 insertions(+), 6 deletions(-) delete mode 100644 autoscripts/postrm-wm create mode 100644 autoscripts/prerm-wm diff --git a/autoscripts/postrm-wm b/autoscripts/postrm-wm deleted file mode 100644 index c4670b9..0000000 --- a/autoscripts/postrm-wm +++ /dev/null @@ -1,2 +0,0 @@ -update-alternatives --remove x-window-manager #WM# - diff --git a/autoscripts/prerm-wm b/autoscripts/prerm-wm new file mode 100644 index 0000000..b97d627 --- /dev/null +++ b/autoscripts/prerm-wm @@ -0,0 +1,3 @@ +if [ "$1" = "remove" ]; then + update-alternatives --remove x-window-manager #WM# +fi diff --git a/autoscripts/prerm-xaw b/autoscripts/prerm-xaw index 2507a2f..98837f8 100644 --- a/autoscripts/prerm-xaw +++ b/autoscripts/prerm-xaw @@ -1,4 +1,5 @@ -for opts in #OPTS#; do - update-alternatives --quiet --remove $opts -done - +if [ "$1" = "remove" ]; then + for opts in #OPTS#; do + update-alternatives --quiet --remove $opts + done +fi diff --git a/debian/changelog b/debian/changelog index d6bacad..bab5422 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (2.2.8) unstable; urgency=medium + + * dh_installwm: Moved update-alternatives --remove call to prerm, + Closes: #80209 + * ALso guarded all update-alternatives --remove calls. + + -- Joey Hess Thu, 21 Dec 2000 11:33:30 -0800 + debhelper (2.2.7) unstable; urgency=low * Spelling patch. -- 2.39.5