Bugs item #25405, was opened at 2009-04-12 21:32
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25405&group_id=126

Category: `gem` commands (other)
Group: v1.3.x
>Status: Closed
>Resolution: Out of Date
Priority: 3
Submitted By: Brett Eisenberg (brett)
>Assigned to: Eric Hodel (drbrain)
Summary: gem cleanup does not work with non-system gem installations

Initial Comment:
[br...@rubygems]:~% gem cleanup --debug
Exception `NameError' at 
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command_manager.rb:134 - 
uninitialized constant Gem::Commands::CleanupCommand
Cleaning up installed gems...
Exception `NameError' at 
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command_manager.rb:134 - 
uninitialized constant Gem::Commands::UninstallCommand
Attempting to uninstall memcache-client-1.7.1
Exception `Gem::InstallError' at 
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/uninstaller.rb:61 - Unknown gem 
memcache-client = 1.7.1
ERROR:  While executing gem ... (Gem::InstallError)
    Unknown gem memcache-client = 1.7.1
        /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/uninstaller.rb:61:in 
`uninstall'
        
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/commands/cleanup_command.rb:78:in 
`execute'
        
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/commands/cleanup_command.rb:65:in 
`each'
        
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/commands/cleanup_command.rb:65:in 
`execute'
        /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command.rb:136:in `invoke'
        /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command_manager.rb:105:in 
`process_args'
        /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command_manager.rb:75:in 
`run'
        /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_runner.rb:39:in `run'
        /opt/local/bin/gem:24
[br...@rubygems]:~% gem search memcache-client

*** LOCAL GEMS ***

memcache-client (1.7.2, 1.7.1)


----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2009-04-13 13:39

Message:
This is fixed in trunk.

For non-GEM_HOME paths, you must specify the repo to clean up.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25405&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to