From 448faad0f04d7f56e5b708ff76213fe0f92c2ae2 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 14 May 2015 17:19:03 +0200 Subject: 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 --- scripts/Dpkg/Dist/Files.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Dpkg/Dist') 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; -- cgit v1.2.3