From 085465ae33574b43cd9a097937c56d1e3013ff1a Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Tue, 1 Jun 2010 13:36:27 -0700 Subject: Have the resolver filter by platform instead of the sources --- lib/bundler/index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bundler/index.rb') diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index 08e7afde02..ca3a3ec9ab 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -77,7 +77,7 @@ module Bundler wants_prerelease = dependency.requirement.prerelease? only_prerelease = specs.all? {|spec| spec.version.prerelease? } - found = specs.select { |spec| dependency =~ spec } + found = specs.select { |spec| dependency =~ spec && Gem::Platform.match(spec.platform) } unless wants_prerelease || only_prerelease found.reject! { |spec| spec.version.prerelease? } -- cgit v1.2.1