diff options
-rwxr-xr-x | dh_install | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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 |