[debhelper-devel] [debhelper] 01/01: dh_missing: Make --list-missing the default in c12
Niels Thykier
nthykier at moszumanska.debian.org
Sat Dec 30 18:21:06 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 8c69e49565f6de23d1e5d254097a83789001cbde
Author: Niels Thykier <niels at thykier.net>
Date: Sat Dec 30 18:18:39 2017 +0000
dh_missing: Make --list-missing the default in c12
Closes: nthykier/debhelper#2
Closes: Debian#650129
Closes: Debian#858834
Signed-off-by: Niels Thykier <niels at thykier.net>
---
debhelper.pod | 4 ++++
debian/changelog | 3 +++
dh_missing | 5 +++++
3 files changed, 12 insertions(+)
diff --git a/debhelper.pod b/debhelper.pod
index e368549..e009f5a 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -765,6 +765,10 @@ The B<dh_installdeb> tool will do basic validation of some
L<dpkg-maintscript-helper(1)> commands and will error out if the
commands appear to be invalid.
+=item -
+
+The B<dh_missing> tool will now default to B<--list-missing>.
+
=back
=back
diff --git a/debian/changelog b/debian/changelog
index 2500c16..a35834f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,9 @@ debhelper (11.1) UNRELEASED; urgency=medium
to Maximiliano Curia for the suggestion. (Closes: #884556)
* dh_missing: Tweak handling of missing source directory and
single binary packages.
+ * dh_missing: Make --list-missing the default in compat 12.
+ Thanks to Daniel Leidert and Christian Göttsche for the
+ suggestions. (Closes: #650129, #858834)
-- Niels Thykier <niels at thykier.net> Sun, 17 Dec 2017 07:59:18 +0000
diff --git a/dh_missing b/dh_missing
index 5d5c0f9..4dd9043 100755
--- a/dh_missing
+++ b/dh_missing
@@ -60,6 +60,8 @@ Warn on stderr about source files not installed to somewhere.
Note that files that are excluded from being moved via the B<-X> option are not
warned about.
+This is the default in compat 12 and later.
+
=item B<--fail-missing>
This option is like B<--list-missing>, except if a file was missed, it will
@@ -80,6 +82,9 @@ my (@installed, %helpers);
my $srcdir = '.';
$srcdir = $dh{SOURCEDIR} if defined $dh{SOURCEDIR};
+# --list-missing is the default in compat 12+
+$dh{LIST_MISSING} = 1 if !$dh{FAIL_MISSING} && !compat(11);
+
if (!$dh{LIST_MISSING} && !$dh{FAIL_MISSING}) {
exit 0;
}
--
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