[debhelper-devel] [debhelper] 01/01: dh_installwm: call after dh_link in dh call sequence, error out in compat 10 if there is no man page
brlink at debian.org
brlink at debian.org
Sun Apr 5 00:29:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
brlink pushed a commit to branch master
in repository debhelper.
commit 40656c02c319461e65879c2dba7475b2f288b578
Author: Bernhard R. Link <brlink at debian.org>
Date: Sat Apr 4 19:04:41 2015 +0200
dh_installwm: call after dh_link in dh call sequence, error out in compat 10 if there is no man page
Move dh_installwm after dh_link, so that a manpage created by dh_link
can be found.
Also error out in compat 10 if no manpage is found.
---
debhelper.pod | 5 +++++
debian/changelog | 2 ++
dh | 2 +-
dh_installwm | 4 ++++
4 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/debhelper.pod b/debhelper.pod
index 2c33aab..1e28e60 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -565,6 +565,11 @@ B<dh_installdeb> no longer installs a maintainer-provided
debian/I<package>.shlibs file. This is now done by B<dh_makeshlibs>
instead.
+=item -
+
+B<dh_installwm> refuses to create a broken package if no man page
+can be found (required to register for the x-window-manager alternative).
+
=back
=back
diff --git a/debian/changelog b/debian/changelog
index a00b8be..2d24a46 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -92,6 +92,8 @@ debhelper (9.20150101.1) UNRELEASED; urgency=medium
--disable-silent-rules (otherwise). (Closes: #551463, #680686)
* dh_compress: exclude .xz .lzma and .lz files from compression
(Closes: #778927)
+ * dh_installwm: call by dh after dh_link (Closes: #781077),
+ error out in compat 10 if no man page found
[ Jason Pleau ]
* dh_installchangelogs: Add CHANGES.md to the list of common changelog
diff --git a/dh b/dh
index eceb62e..93111da 100755
--- a/dh
+++ b/dh
@@ -381,7 +381,6 @@ my @i = qw{
dh_installpam
dh_installppp
dh_installudev
- dh_installwm
dh_installgsettings
dh_bugfiles
dh_ucf
@@ -392,6 +391,7 @@ my @i = qw{
dh_usrlocal
dh_link
+ dh_installwm
dh_installxfonts
dh_compress
dh_fixperms
diff --git a/dh_installwm b/dh_installwm
index b09bc3a..8fa0253 100755
--- a/dh_installwm
+++ b/dh_installwm
@@ -102,6 +102,10 @@ WM: foreach my $wm (@wm) {
}
}
}
+ if (! compat(9)) {
+ error("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:;s/#PRIORITY#/$dh{PRIORITY}/",);
}
}
--
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