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("$package missing files (@$set), aborting");
+ }
+ }
foreach my $src (map { glob "$srcdir/$_" } @$set) {
next if excludefile($src);
my @missing;
my $installed=join("|", @installed);
- $installed=qr{^$installed$};
+ $installed=qr{^($installed)$};
find(sub {
-f || -l || return;
$_="$File::Find::dir/$_";
- push @missing, $_ unless /$installed/ || excludefile($_);
+ if (! /$installed/ && ! excludefile($_)) {
+ my $file=$_;
+ $file=~s/^\Q$srcdir\E\///;
+ push @missing, $file;
+ }
}, $srcdir);
if (@missing) {
- warning "$_ exists in debian/tmp but not installed to anywhere" foreach @missing;
+ warning "$_ exists in debian/tmp but is not installed to anywhere" foreach @missing;
if ($dh{FAIL_MISSING}) {
error("missing files, aborting");
}
While debian/libfoo.install contains:
- usr/libfoo*.so.*
+ usr/lib/libfoo*.so.*
If you want a libfoo-dev package too, debian/libfoo-dev.install might contain: