[debhelper-devel] [debhelper] 10/17: dh_install: Mark --(list|fail)-missing as deprecated
Niels Thykier
nthykier at moszumanska.debian.org
Sat Apr 8 08:58:10 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 96fcbde0edc16a4b23c9039cf55ad7ce0e9f78d8
Author: Niels Thykier <niels at thykier.net>
Date: Mon Apr 3 10:31:09 2017 +0000
dh_install: Mark --(list|fail)-missing as deprecated
Signed-off-by: Niels Thykier <niels at thykier.net>
---
debhelper.pod | 6 ++++++
dh_install | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/debhelper.pod b/debhelper.pod
index e2e0e6e..8a2c96c 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -638,6 +638,12 @@ The B<makefile> buildsystem now passes B<INSTALL=install
--strip-program=true> to L<make(1)>. Derivative buildsystems
(e.g. B<configure> or B<cmake>) are unaffected by this change.
+=item -
+
+The B<--list-missing> and B<--fail-missing> in B<dh_install> has been
+removed. Please use B<dh_missing> and its corresponding options,
+which can also see the files installed by other helpers.
+
=back
=back
diff --git a/dh_install b/dh_install
index f4c4e76..c47db93 100755
--- a/dh_install
+++ b/dh_install
@@ -74,6 +74,8 @@ this file.
=item B<--list-missing>
+B<Deprecated>: Please use B<dh_missing --list-missing> instead.
+
This option makes B<dh_install> keep track of the files it installs, and then at
the end, compare that list with the files in the source directory. If any of
the files (and symlinks) in the source directory were not installed to
@@ -87,6 +89,8 @@ warned about.
=item B<--fail-missing>
+B<Deprecated>: Please use B<dh_missing --fail-missing> instead.
+
This option is like B<--list-missing>, except if a file was missed, it will
not only list the missing files, but also fail with a nonzero exit code.
@@ -138,6 +142,10 @@ $srcdir = $dh{SOURCEDIR} if defined $dh{SOURCEDIR};
my $missing_files = 0;
+if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) {
+ deprecated_functionality('Please use dh_missing --list-missing/--fail-missing instead', 11);
+}
+
# PROMISE: DH NOOP WITHOUT install
foreach my $package (getpackages()) {
--
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