summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/query_command.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-11 20:57:02 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-11 20:57:02 +0000
commite72b71d56a1f369cb7eb3892c61715460bac8109 (patch)
tree6f55131cbd153845e71dadc91f08636aa6707423 /lib/rubygems/commands/query_command.rb
parent0ae6c7f816cbc3ba0cdd97f609b9ffcbf49bf9bb (diff)
Update to RubyGems 1.1.1 r1701.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/commands/query_command.rb')
-rw-r--r--lib/rubygems/commands/query_command.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rubygems/commands/query_command.rb b/lib/rubygems/commands/query_command.rb
index fdc5a6a4ea..ea83b93bbb 100644
--- a/lib/rubygems/commands/query_command.rb
+++ b/lib/rubygems/commands/query_command.rb
@@ -82,13 +82,15 @@ class Gem::Commands::QueryCommand < Gem::Command
say "*** REMOTE GEMS ***"
say
+ all = options[:all]
+
begin
- Gem::SourceInfoCache.cache.refresh options[:all]
+ Gem::SourceInfoCache.cache all
rescue Gem::RemoteFetcher::FetchError
# no network
end
- output_query_results Gem::SourceInfoCache.search(name, false, true)
+ output_query_results Gem::SourceInfoCache.search(name, false, all)
end
end