[DRE-commits] [SCM] pkg-ruby-extras.git branch, master, updated. aac2be6f2015ef2fc242a1e8310f95157e440a30
Antonio Terceiro
terceiro at softwarelivre.org
Fri Jul 29 06:49:58 UTC 2011
The following commit has been merged in the master branch:
commit 4e7b0e95e5fcba499774578fc77180fdcb8776d2
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Thu Jul 28 23:41:38 2011 -0700
A faster way of getting last version from changelog
diff --git a/pkg-overview b/pkg-overview
index 9e384a5..d722a6d 100755
--- a/pkg-overview
+++ b/pkg-overview
@@ -71,12 +71,11 @@ def rmadison_to_version(src)
end
def changelog_version(src)
- res = `cd #{src} && dpkg-parsechangelog 2>/dev/null`
+ v = `cd #{src} && sed -e '2,$d; s/.*(\\(.*.\\)).*/\\1/' debian/changelog 2>/dev/null`.strip
if $?.exitstatus != 0
STDERR.puts "ERROR: #{src}: dpkg-parsechangelog failed."
return nil
end
- v = res.lines.grep(/^Version: /).first.split(' ')[1]
v.gsub!(/^[0-9]+:/,'') # strip epoch
return DebVersion::new(v)
end
--
pkg-ruby-extras.git
More information about the Pkg-ruby-extras-commits
mailing list