From e72ca2e04457bfbfffb92bdfb30123852930e030 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 9 Nov 2013 16:37:46 +0000 Subject: rbinstall.rb: fix for non-working directory * tool/rbinstall.rb (Gem::Specification.last_date): skip if failed to get info from VCS, for example, in the case circumstance sharing working directory with another machine and run vcs tools cannot work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tool/rbinstall.rb') diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 1f2a6aebc0..b3dad0ee89 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -579,7 +579,8 @@ module Gem def self.last_date(path) return unless $vcs - return unless time = $vcs.get_revisions(path)[2] + time = $vcs.get_revisions(path)[2] rescue return + return unless time time.strftime("%Y-%m-%d") end -- cgit v1.2.3