Subject: | retrieval of 02packages sometimes is corrupted |
When using LWP::Simple::get, the LWP::Simple (rightly) decodes the
content based on the content-type header. As of the filing of this bug,
http://www.cpan.org/modules/02packages.details.txt.gz has a content type
header of "text/plain; charset=UTF-8". LWP::Simple tries to decode the
binary gzip data as utf-8 and then stuff starts breaking. It might be
better to use getstore (with a temp file) or use LWP::UserAgent where you
can ensure that the file is treated as an opaque binary.
I don't know if you'll want to fix this since really, everything is
working correctly except for the cpan.org server (as well as other random
mirrors) but I have no idea where the RT queue for those are :-)
As a workaround in my code, I'm passing in the 02packages option to the
finddeps function.