diff options
author | joey <joey> | 2005-07-19 17:49:11 +0000 |
---|---|---|
committer | joey <joey> | 2005-07-19 17:49:11 +0000 |
commit | 7a61e2fd152ccfd631a693a9f295fe5f3d8e67a6 (patch) | |
tree | a44dc7bf84940e071c2b133fc29c7a726a66449f /dh_install | |
parent | 78e828cbc2604324385a20f21083d929d0097ea9 (diff) |
r1774: * dh_install: in v5 mode, error out if there are wildcards in the file
list and the wildcards expand to nothing. Done only for v5 as this is a
behavior change.
Diffstat (limited to 'dh_install')
-rwxr-xr-x | dh_install | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -138,7 +138,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) { if (! defined $dh{AUTODEST} && @$set > 1) { $dest=pop @$set; } - # glob now, relative to srcdir + if (! compat(4)) { # check added in v5 + # glob now, relative to srcdir + if (! map { glob "$srcdir/$_" } @$set) { + error("missing files (@$set), aborting"); + } + } foreach my $src (map { glob "$srcdir/$_" } @$set) { next if excludefile($src); |