summaryrefslogtreecommitdiff
path: root/dh_missing
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-12-30 18:18:39 +0000
committerNiels Thykier <niels@thykier.net>2017-12-30 18:18:39 +0000
commit8c69e49565f6de23d1e5d254097a83789001cbde (patch)
tree0a38a0adeda796abcc20bc324c6b4e78fde82754 /dh_missing
parent3cb2e268bcc90616db00e983628bd18032e87576 (diff)
downloaddebhelper-8c69e49565f6de23d1e5d254097a83789001cbde.tar.gz
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@thykier.net>
Diffstat (limited to 'dh_missing')
-rwxr-xr-xdh_missing5
1 files changed, 5 insertions, 0 deletions
diff --git a/dh_missing b/dh_missing
index 5d5c0f9b..4dd9043d 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;
}