summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrank Lichtenheld <djpig@debian.org>2006-01-23 12:39:52 +0000
committerFrank Lichtenheld <djpig@debian.org>2006-01-23 12:39:52 +0000
commit2f98cb7f73a2558cf5c1d8b044ec724f8193135c (patch)
tree4dac649dd8b365e495261e9180d22c9e14522058 /scripts
parent0a1588a86331f944742b4e5731565b7c11453d05 (diff)
downloaddpkg-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-xscripts/dpkg-source.pl4
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;