diff options
author | joey <joey> | 2003-10-13 01:37:14 +0000 |
---|---|---|
committer | joey <joey> | 2003-10-13 01:37:14 +0000 |
commit | 8d285c73f8a1d8f4b632100ce764893f3d704068 (patch) | |
tree | 32157a3107409e129074042dc7a75c64c54d7057 /dh_install | |
parent | 87c9d162920985cd2ee71b56d9a38aa5bda85093 (diff) |
r1611: * dh_install: add --fail-missing option. Closes: #120026
* Fix mispelling in prerm-sgmlcatalog. Closes: #215189
Diffstat (limited to 'dh_install')
-rwxr-xr-x | dh_install | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -12,7 +12,7 @@ use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS -B<dh_install> [B<-X>I<item>] [B<--autodest>] [B<--list-missing>] [B<--sourcedir=>I<dir>] [S<I<debhelper options>>] [S<I<file [...] dest>>] +B<dh_install> [B<-X>I<item>] [B<--autodest>] [B<--sourcedir=>I<dir>] [S<I<debhelper options>>] [S<I<file [...] dest>>] =head1 DESCRIPTION @@ -79,6 +79,11 @@ you don't miss installing newly added files in new upstream releases. Note that files that are excluded from being moved via the -X option are not warned about. +=item B<--fail-missing> + +This option is like --list-missing, except if a file was missed, it will +not only list the missing files, but also fail with a nonzero exit code. + =item B<--sourcedir=dir> Makes all source files be found under dir. If this is specified, it is @@ -154,7 +159,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } # Keep track of what's installed. - if ($dh{LIST_MISSING}) { + if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) { # Kill any extra slashes. Makes the # @installed stuff more robust. $src=~y:/:/:s; @@ -184,8 +189,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } } -if ($dh{LIST_MISSING}) { - +if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) { # . as srcdir makes no sense, so this is a special case. if ($srcdir eq '.') { $srcdir='debian/tmp'; @@ -201,6 +205,9 @@ if ($dh{LIST_MISSING}) { }, $srcdir); if (@missing) { warning "$_ exists in debian/tmp but not installed to anywhere" foreach @missing; + if ($dh{FAIL_MISSING}) { + error("missing files, aborting"); + } } } |