Bugs item #25509, was opened at 2009-04-16 13:15
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25509&group_id=126
>Category: `gem` commands (other)
>Group: v1.3.x
Status: Open
>Resolution: Accepted
Priority: 3
Submitted By: Johnathan Conley (jconley)
>Assigned to: Eric Hodel (drbrain)
Summary: exception using new generate_index in 1.3.2
Initial Comment:
After upgrading to 1.3.2, I wiped out my old indexes, and build a full index
from scratch. Everything worked fine... but afterwards I rsyned with the
upstream server, one new gem was available... and then I ran generate_index
with the --update option and received this error...
receiving file list ... done
Onion-0.0.2.gem
sent 240 bytes received 623761 bytes 83200.13 bytes/sec
total size is 4929983101 speedup is 7900.60
$ gem generate_index --no-legacy --update -d /home/mirror/www --backtrace
Loading 1 gems from /home/mirror/www
.
Loaded all gems
loaded: 0.004s
Generating Marshal quick index gemspecs for 1 gems
.
Complete
Generated Marshal quick index gemspecs: 0.001s
ERROR: While executing gem ... (NoMethodError)
undefined method `<=>' for nil:NilClass
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
`<=>'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
`sort'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
`update_specs_index'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:656:in
`update_index'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems.rb:966:in
`time'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:655:in
`update_index'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/commands/generate_index_command.rb:125:in
`execute'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command.rb:254:in
`invoke'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in
`process_args'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in
`run'
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in
`run'
/opt/ruby/bin/gem:21
Below is the output from the first full index build... likely won't help since
it completed without errors.
Complete
Generated Marshal quick index gemspecs: 11.859s
Generating specs index
WARNING: Skipping invalid platform in gem: win32-api-1.0.4-x86-mswin32-60
Generated specs index: 0.483s
Generating latest specs index
Generated latest specs index: 0.094s
Generating prerelease specs index
Generated prerelease specs index: 0.000s
Compressing indicies
Compressed indicies: 0.068s
----------------------------------------------------------------------
>Comment By: Eric Hodel (drbrain)
Date: 2009-04-16 13:40
Message:
Can you run with -V as well?
gem generate_index --no-legacy --update -d /home/mirror/www --backtrace -V
This should give the gem that's causing the problem.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25509&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers