[DRE-commits] [pkg-ruby-extras] 02/02: deal better with possible nil versions
Cédric Boutillier
boutil at alioth.debian.org
Fri Oct 18 23:17:26 UTC 2013
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository pkg-ruby-extras.
commit 686b6d47d6d07effff2d5df064a6023c618a1ace
Author: Cédric Boutillier <boutil at debian.org>
Date: Sat Oct 19 01:17:12 2013 +0200
deal better with possible nil versions
---
pkg-overview | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg-overview b/pkg-overview
index a85d3da..c749e34 100755
--- a/pkg-overview
+++ b/pkg-overview
@@ -12,7 +12,7 @@ class DebVersion
end
def to_s
- @version
+ @version.to_s
end
def <=>(anOther)
@@ -60,7 +60,7 @@ def changelog_version(src)
header = File.readlines(changelog).first
header =~ /\((.*)\) (\w+);/
v = $1
- v.gsub!(/^[0-9]+:/,'') # strip epoch
+ v.gsub!(/^[0-9]+:/,'') unless v.nil? # strip epoch
return DebVersion::new(v)
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/pkg-ruby-extras.git
More information about the Pkg-ruby-extras-commits
mailing list