From cbab6a4f555a69ae7a2a18454be825be7e73ac62 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Fri, 12 Sep 2003 15:19:33 +0000 Subject: [PATCH] Grr, properly allow ~ in version numbers --- scripts/dpkg-source.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl index 58640941..7156ec31 100755 --- a/scripts/dpkg-source.pl +++ b/scripts/dpkg-source.pl @@ -523,7 +523,7 @@ if ($opmode eq 'build') { $dscformat=$fi{'S Format'}; } - $sourcepackage =~ m/[^.0-9~]/ && + $sourcepackage =~ m/[^.0-9]/ && &error("dsc format contains illegal character \`$&'"); $sourcepackage= $fi{'S Source'}; @@ -533,7 +533,7 @@ if ($opmode eq 'build') { &error("source package name is too short or starts with non-alphanum"); $version= $fi{'S Version'}; - $version =~ m/[^-+:.0-9a-zA-Z]/ && + $version =~ m/[^-+:.0-9a-zA-Z~]/ && &error("version number contains illegal character \`$&'"); $version =~ s/^\d+://; if ($version =~ m/-([^-]+)$/) { -- 2.39.5