diff options
author | Frank Lichtenheld <djpig@debian.org> | 2006-01-23 12:39:52 +0000 |
---|---|---|
committer | Frank Lichtenheld <djpig@debian.org> | 2006-01-23 12:39:52 +0000 |
commit | 2f98cb7f73a2558cf5c1d8b044ec724f8193135c (patch) | |
tree | 4dac649dd8b365e495261e9180d22c9e14522058 /scripts | |
parent | 0a1588a86331f944742b4e5731565b7c11453d05 (diff) | |
download | dpkg-2f98cb7f73a2558cf5c1d8b044ec724f8193135c.tar.gz |
dpkg-source: Don't use \b to match the end
of the version in filenames, use (?=[.-]) and (?=\.) instead.
\b doesn't work in case the version ends with ~.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dpkg-source.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl index 0b8e9dd66..5641c1d2d 100755 --- a/scripts/dpkg-source.pl +++ b/scripts/dpkg-source.pl @@ -624,9 +624,9 @@ if ($opmode eq 'build') { local $_ = $file; &error("Files field contains invalid filename `$file'") - unless s/^\Q$sourcepackage\E_\Q$baseversion\E\b// and + unless s/^\Q$sourcepackage\E_\Q$baseversion\E(?=[.-])// and s/\.(gz|bz2)$//; - s/^-\Q$revision\E\b// if length $revision; + s/^-\Q$revision\E(?=\.)// if length $revision; &error("repeated file type - files `$seen{$_}' and `$file'") if $seen{$_}; $seen{$_} = $file; |