[debsums] 02/07: Broaden character set which is considered a valid version number

Axel Beckert abe at deuxchevaux.org
Tue Mar 3 11:35:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository debsums.

commit b2d174976c89a88ed0588b5fbc8d361012de9146
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Mar 3 11:02:27 2015 +0100

    Broaden character set which is considered a valid version number
    
    Closes: #779626
---
 debian/changelog | 2 ++
 debsums          | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5a62ca9..e880bf0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,8 @@ debsums (2.1~dev) UNRELEASED; urgency=medium
     + Apply patch by Vladimir N. Solovyov to also report modified files of
       arch-qualified (multiarch) packages. (Closes: #773136)
     + Warn if found md5sums file is empty. (Closes: #577197)
+    + Broaden character set which is considered a valid version number.
+      (Closes: #779626)
     + Remove obsolete CVS keywords.
     + Quote HERE document delimiters to ease syntax highlighting and
       please perlcritic.
diff --git a/debsums b/debsums
index e0e4bb8..d0cbb43 100755
--- a/debsums
+++ b/debsums
@@ -31,7 +31,7 @@ sub version {
     $cmd .= ' | grep ^Version: | cut -d " " -f 2';
     my $res = `$cmd`;
     chomp($res);
-    if (!($res =~ /^[0-9.]+$/)) {
+    if (!($res =~ /^[0-9.~a-z+]+$/)) {
         $res = "";
     }
     return $res;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git



More information about the Pkg-perl-cvs-commits mailing list