On Jan 22, 2007, at 02:38, lijie wrote:
> 2007/1/22, Eric Hodel <drbrain / segment7.net>:
>> Did you have a RubyGems already installed before starting the  
>> upgrade?
>>
>> Could you try removing /usr/lib/ruby/site_ruby/1.8/rubygems and re-
>> running setup?
>>
>> None of those lines match up with 0.9.1's package.rb.
>
> I have removed it, and run setup again:
>
> # ruby setup.rb
> /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:74:in
> `new_from_stream': Interrupt

Can you check your sources gem's MD5?

$ md5 pkgs/sources/sources-0.0.1.gem
MD5 (pkgs/sources/sources-0.0.1.gem) = 5e0ab904499bb982a6ef62fe3af0a291

Is what I get.

If that matches, can you try this script:

data = <<-EOF
ZGF0YS50YXIuZ3oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAADAwMDA2NDQAMDAwMDAwMAAwMDAwMDAwADAwMDAwMDAwMjYw
ADAwMDAwMDAwMDAwADAxMzMxNQAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1c3RhcgAwMHdoZWVs
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd2hlZWwAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAwMDAwMDAwADAwMDAwMDAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAA=
EOF

header = data.unpack('m*').first
data = header.unpack("A100" +   # record name
                      "A8A8A8" + # mode, uid, gid
                      "A12A12" + # size, mtime
                      "A8A" +    # checksum, typeflag
                      "A100" +   # linkname
                      "A6A2" +   # magic, version
                      "A32" +    # uname
                      "A32" +    # gname
                      "A8A8" +   # devmajor, devminor
                      "A155")    # prefix

p data

I got:

["data.tar.gz", "0000644", "0000000", "0000000", "00000000260",  
"00000000000", "013315", "0", "", "ustar", "00", "wheel", "wheel",  
"0000000", "0000000", ""]

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!