aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-20 23:23:00 -0700
committerAndre Arko <andre@arko.net>2010-04-23 10:05:09 -0700
commitecf81a6c376071d29f3102ea50f9195d12da6946 (patch)
treed21056db7134530aaca6269042e6893386684c47 /lib
parentd0cc02b755d5f649e17f20fe4b8dcfd7c7bb52b6 (diff)
downloadbundler-ecf81a6c376071d29f3102ea50f9195d12da6946.tar.gz
cache command should not prune gems for other platforms
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/runtime.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 5df14983..f5bf62f0 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -83,6 +83,7 @@ module Bundler
Bundler.ui.info "Removing outdated .gem files from vendor/cache"
cache_path.children.each do |gem_path|
cached_spec = Gem::Format.from_file_by_path(gem_path).spec
+ next unless cached_spec.platform =~ Gem::Platform.local
unless specs.any?{|s| s.full_name == cached_spec.full_name }
Bundler.ui.info " * #{File.basename(gem_path)}"
gem_path.rmtree