scr/cpan — pull request #2 by olegwtf (2012-01-15 12:55:24+00:00)
Title: More correct error return & more correct dependencies specification

81720471:
In the current version when IO::Socket::Socks::connect fails LWP's status_line() method returns `500: write failed: Bad file descriptor` which looks strange. This is because there is no check in the code is IO::Socket::Socks::connect fails. In additional if perl started with `-w` key we will get warning `syswrite() on closed filehandle GEN0`.
This commit adds such checking and now there is no warning and status_line message looks more correct `500 Can't connect to xxx:xx`.

ac44fec1:
Since LWP 6.02 LWP::Protocol::https module was separated from libwww distribution. And now we have 153 failed reports from CPAN Testers. This commit adds more correct dependencies checking. If LWP already installed & version < 6.02 we need not LWP::Protocol::https, other way LWP::Protocol::https will be dependency.