From: Wichert Akkerman Date: Fri, 12 Sep 2003 15:19:33 +0000 (+0000) Subject: Grr, properly allow ~ in version numbers X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbab6a4f555a69ae7a2a18454be825be7e73ac62;p=dpkg Grr, properly allow ~ in version numbers --- 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/-([^-]+)$/) {