summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-04-20 17:41:58 +0000
committerjoeyh <joeyh>2007-04-20 17:41:58 +0000
commitd21d3fea239cae53fbd0ff8a24e9580ff5060384 (patch)
treeadf662dc07e6e880f94634a7e3992cd13c038ea4 /autoscripts
parent7e41b73a4ba707bce3c84f0c6d9f6f826ed0e37e (diff)
downloaddebhelper-d21d3fea239cae53fbd0ff8a24e9580ff5060384.tar.gz
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.
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-wm2
-rw-r--r--autoscripts/postinst-wm-noman4
2 files changed, 5 insertions, 1 deletions
diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm
index d47aefab..ee636287 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 00000000..aef412a3
--- /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