From d21d3fea239cae53fbd0ff8a24e9580ff5060384 Mon Sep 17 00:00:00 2001 From: joeyh Date: Fri, 20 Apr 2007 17:41:58 +0000 Subject: r1997: * dh_installwm: Fix several stupid bugs, including: - man page handling was supposed to be v6 only and was not - typo in alternatives call - use the basename of the wm to get the man page name Closes: #420158 * dh_installwm: Also make the code to find the man page more robust and fall back to not registering a man page if it is not found. --- autoscripts/postinst-wm | 2 +- autoscripts/postinst-wm-noman | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 autoscripts/postinst-wm-noman (limited to 'autoscripts') diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm index d47aefa..ee63628 100644 --- a/autoscripts/postinst-wm +++ b/autoscripts/postinst-wm @@ -2,5 +2,5 @@ if [ "$1" = "configure" ]; then update-alternatives --install /usr/bin/x-window-manager \ x-window-manager #WM# #PRIORITY# \ --slave /usr/share/man/man1/x-window-manager.1.gz \ - x-window-manager /usr/share/man/man1/#WM#.1.gz + x-window-manager.1.gz #WMMAN# fi diff --git a/autoscripts/postinst-wm-noman b/autoscripts/postinst-wm-noman new file mode 100644 index 0000000..aef412a --- /dev/null +++ b/autoscripts/postinst-wm-noman @@ -0,0 +1,4 @@ +if [ "$1" = "configure" ]; then + update-alternatives --install /usr/bin/x-window-manager \ + x-window-manager #WM# #PRIORITY# +fi -- cgit v1.2.1