I received the attached patch for /usr/lib/ruby/1.8/rubygems/package.rb
from Daigo Moriwaki which corrects the problem.
--- package.rb.orig 2007-01-13 17:39:23.000000000 +0900
+++ package.rb 2007-01-13 17:39:49.000000000 +0900
@@ -444,17 +444,17 @@
size = entry.size
yield entry
skip = (512 - (size % 512)) % 512
- if @io.respond_to? :seek
- # avoid reading...
- @io.seek(size - entry.bytes_read, IO::SEEK_CUR)
- else
+ #if @io.respond_to? :seek
+ # # avoid reading...
+ # @io.seek(size - entry.bytes_read, IO::SEEK_CUR)
+ #else
pending = size - entry.bytes_read
while pending > 0
bread = @io.read([pending, 4096].min).size
raise UnexpectedEOF if @io.eof?
pending -= bread
end
- end
+ #end
@io.read(skip) # discard trailing zeros
# make sure nobody can use #read, #getc or #rewind anymore
entry.close
begin:vcard
fn:Stephen Young
n:Young;Stephen
org:Analytical Mechanics Associates
adr;dom:;;4910 University Square, Suite 2;Huntsville;Alabama;35816
email;internet:[EMAIL PROTECTED]
tel;work:(256) 830-9112
x-mozilla-html:TRUE
version:2.1
end:vcard