[debhelper-devel] [debhelper] 06/06: dh_install: Only call dh_missing if necessary
Niels Thykier
nthykier at moszumanska.debian.org
Mon Apr 3 10:42:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch bug-415396-dh_missing
in repository debhelper.
commit 83fb8d0e3d9910b8f2209787a7fa4b35b3a24048
Author: Niels Thykier <niels at thykier.net>
Date: Mon Apr 3 10:41:49 2017 +0000
dh_install: Only call dh_missing if necessary
Signed-off-by: Niels Thykier <niels at thykier.net>
---
dh_install | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/dh_install b/dh_install
index c47db93..a094462 100755
--- a/dh_install
+++ b/dh_install
@@ -269,14 +269,16 @@ if ($missing_files) {
error("missing files, aborting");
}
-my @options;
-push @options, "--list-missing" if $dh{LIST_MISSING};
-push @options, "--fail-missing" if $dh{FAIL_MISSING};
-my $ret = system("dh_missing", @options);
-if ($ret >> 8 != 0) {
- exit $ret >> 8;
-} elsif ($ret) {
- exit 1;
+if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) {
+ my @options;
+ push @options, "--list-missing" if $dh{LIST_MISSING};
+ push @options, "--fail-missing" if $dh{FAIL_MISSING};
+ my $ret = system("dh_missing", @options);
+ if ($ret >> 8 != 0) {
+ exit $ret >> 8;
+ } elsif ($ret) {
+ exit 1;
+ }
}
=head1 LIMITATIONS
--
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