diff options
author | joey <joey> | 2004-01-16 03:43:41 +0000 |
---|---|---|
committer | joey <joey> | 2004-01-16 03:43:41 +0000 |
commit | 118269e577000827f09268d54db87a453abbc176 (patch) | |
tree | 7d49033bee6bb5dd6006ce77ca3508459a0d6484 /dh_install | |
parent | ba7461c6cb0a727954e8c5adecfa9b7d8eab854f (diff) | |
download | debhelper-118269e577000827f09268d54db87a453abbc176.tar.gz |
r1638: * dh_install: add missing parens to the $installed regexp. Closes: #227963version_4.1.85
* dh_install: improve wording of --list-missing messages
Diffstat (limited to 'dh_install')
-rwxr-xr-x | dh_install | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -198,14 +198,18 @@ if ($dh{LIST_MISSING} || $dh{FAIL_MISSING}) { 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"); } |