[debhelper-devel] [debhelper] 03/17: dh_installwm: Permit missing manpage under nodoc profile
Niels Thykier
nthykier at moszumanska.debian.org
Thu Jun 29 15:49:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit 6d7a49451e48cd07000ce9af1b247058a91e0d48
Author: Niels Thykier <niels at thykier.net>
Date: Wed Jun 28 13:14:52 2017 +0000
dh_installwm: Permit missing manpage under nodoc profile
Signed-off-by: Niels Thykier <niels at thykier.net>
---
dh_installwm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dh_installwm b/dh_installwm
index 88800ff..469e935 100755
--- a/dh_installwm
+++ b/dh_installwm
@@ -75,6 +75,8 @@ if (@ARGV) {
}
}
+my $nodocs = is_build_profile_active('nodoc') ? 1 : 0;
+
# PROMISE: DH NOOP WITHOUT wm
foreach my $package (@{$dh{DOPACKAGES}}) {
@@ -104,8 +106,10 @@ WM: foreach my $wm (@wm) {
}
}
}
- if (! compat(9)) {
+ if (not compat(9) and not $nodocs) {
error("no manpage found (creating an x-window-manager alternative requires a slave symlink for the manpage)");
+ } else {
+ warning("no manpage found (creating an x-window-manager alternative requires a slave symlink for the manpage)");
}
# Reaching this code means a broken package will be produced.
autoscript($package,"postinst","postinst-wm-noman","s:#WM#:$wm:g;s/#PRIORITY#/$dh{PRIORITY}/g",);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list