[DRE-commits] [SCM] pkg-ruby-extras.git branch, master, updated. 38f954f54d540f5adaaa3c4c43fc16316de30138
Cédric Boutillier
cedric.boutillier at gmail.com
Fri Sep 21 16:43:30 UTC 2012
The following commit has been merged in the master branch:
commit 38f954f54d540f5adaaa3c4c43fc16316de30138
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date: Fri Sep 21 18:43:24 2012 +0200
strip epoch for git tags; replace grep by lines.find for 1.9 compat
diff --git a/pkg-overview b/pkg-overview
index 66deee8..612718b 100755
--- a/pkg-overview
+++ b/pkg-overview
@@ -78,6 +78,7 @@ def tag_version(src)
res.lines.reject { |l| l =~ /^upstream\// }.each do |tag|
curtag = tag
tag = tag.chomp.gsub(/^debian\//, '')
+ tag.gsub!(/^[0-9]+%/,'') # strip epoch
next if tag !~ /^[0-9]/
tag = tag.gsub('_', '~')
tag = DebVersion::new(tag)
@@ -99,7 +100,7 @@ end
def last_commiter(src)
res = `cd #{src} && git show master 2>/dev/null`
return 'INVALID REPO' if not $?.exitstatus == 0
- res = res.grep(/^Author: /)[0].chomp
+ res = res.lines.find{|l| l=~/^Author: /}.chomp
return res.gsub(/.*<(.*)>.*/, '\1')
end
--
pkg-ruby-extras.git
More information about the Pkg-ruby-extras-commits
mailing list