diff options
author | Andre Arko <andre@arko.net> | 2010-04-20 23:23:00 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-23 10:05:09 -0700 |
commit | ecf81a6c376071d29f3102ea50f9195d12da6946 (patch) | |
tree | d21056db7134530aaca6269042e6893386684c47 /lib | |
parent | d0cc02b755d5f649e17f20fe4b8dcfd7c7bb52b6 (diff) | |
download | bundler-ecf81a6c376071d29f3102ea50f9195d12da6946.tar.gz |
cache command should not prune gems for other platforms
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/runtime.rb | 1 |
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 |