[DRE-commits] r3265 - tools/ruby-support/trunk
lucas at alioth.debian.org
lucas at alioth.debian.org
Mon Mar 9 14:44:48 UTC 2009
Author: lucas
Date: 2009-03-09 14:44:48 +0000 (Mon, 09 Mar 2009)
New Revision: 3265
Modified:
tools/ruby-support/trunk/ruby-support
Log:
deal with missing ruby versions properly
Modified: tools/ruby-support/trunk/ruby-support
===================================================================
--- tools/ruby-support/trunk/ruby-support 2009-03-09 14:08:32 UTC (rev 3264)
+++ tools/ruby-support/trunk/ruby-support 2009-03-09 14:44:48 UTC (rev 3265)
@@ -121,6 +121,10 @@
def needed_links(lib, rbver)
raise "Unknown Ruby version: #{rbver}" if not RS_RUBY_VERSIONS.include?(rbver)
raise "Unsupported Ruby version for #{lib}: #{rbver}" if not supported_versions(lib).include?(rbver)
+ if not File::directory?(RS_RUBY_LIBDIR[rbver])
+ # target dir doesn't exist: that version of ruby isn't installed
+ return []
+ end
# find directory to use
dir = nil
if File::directory?("#{RS_PATH}/#{lib}.#{rbver}")
More information about the Pkg-ruby-extras-commits
mailing list