[DRE-commits] [librarian-puppet] 15/153: Fix version regex to match i.e. 1.99.15

Stig Sandbeck Mathisen ssm at debian.org
Wed Jun 1 20:30:33 UTC 2016


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

ssm pushed a commit to branch master
in repository librarian-puppet.

commit 79bd947912fbb799ce42a020721d86e8200b0284
Author: Patrick Schulz <creator79 at googlemail.com>
Date:   Tue Jun 24 23:57:27 2014 +0200

    Fix version regex to match i.e. 1.99.15
    
    fixes boxen/puppet-mysql#37
---
 lib/librarian/puppet/source/githubtarball/repo.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librarian/puppet/source/githubtarball/repo.rb b/lib/librarian/puppet/source/githubtarball/repo.rb
index af47fac..d9e61c7 100644
--- a/lib/librarian/puppet/source/githubtarball/repo.rb
+++ b/lib/librarian/puppet/source/githubtarball/repo.rb
@@ -25,7 +25,7 @@ module Librarian
             all_versions = data.map { |r| r['name'].gsub(/^v/, '') }.sort.reverse
 
             all_versions.delete_if do |version|
-              version !~ /\A\d\.\d(\.\d.*)?\z/
+              version !~ /\A\d+\.\d+(\.\d+.*)?\z/
             end
 
             @versions = all_versions.compact

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git



More information about the Pkg-ruby-extras-commits mailing list