diff options
author | Guillem Jover <guillem@debian.org> | 2015-05-14 17:19:03 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-05-18 06:25:11 +0200 |
commit | 448faad0f04d7f56e5b708ff76213fe0f92c2ae2 (patch) | |
tree | 5f725ade62e590f17e0d8d087c8fb1b159df22cb /scripts/Dpkg/Dist/Files.pm | |
parent | 915151a10317220fcf7d3b821020c94808fad155 (diff) | |
download | dpkg-448faad0f04d7f56e5b708ff76213fe0f92c2ae2.tar.gz |
Dpkg::Dist::Files: Allow ~ in added filenames
When we are constructing a .changes file we add the source artifacts
to the distribution manually, before loading the distribution list
from debian/files.
We should allow ~ in the filename as that's a valid character in a
version number.
Regression introduced in commit ab15fd24dd1a8207ab1463410338f24283989f7c.
Reported-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'scripts/Dpkg/Dist/Files.pm')
-rw-r--r-- | scripts/Dpkg/Dist/Files.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Dpkg/Dist/Files.pm b/scripts/Dpkg/Dist/Files.pm index 719026f31..8fba17f35 100644 --- a/scripts/Dpkg/Dist/Files.pm +++ b/scripts/Dpkg/Dist/Files.pm @@ -58,7 +58,7 @@ sub parse_filename { $file->{version} = $3; $file->{arch} = $4; $file->{package_type} = $5; - } elsif ($fn =~ m/^([-+.,_0-9a-zA-Z]+)$/) { + } elsif ($fn =~ m/^([-+.,_0-9a-zA-Z~]+)$/) { $file->{filename} = $1; } else { $file = undef; |