Subject: | wish: better failure for undefined mirrors |
I just tried to use the shell of 0.49 install a module without any mirrors configured.
It failed. There are a couple ways in which this experience could be improved. First, since I'm the shell, it seems I could be prompted to interactively configure the mirrors at that moment, and then move on.
Second, the final output is very confusing:
No such module: CGI::Application
All modules installed successfully
It seems to be reporting that it couldn't find the requested module, but was somehow able to install it anyway.
Mark
#####
CPAN Terminal> i CGI::Application
Checking if source files are up to date
Updating source file '01mailrc.txt.gz'
You have no mirrors defined! Can not fetch anything. in CPANPLUS::Internals::Fetch::_fetch at Sun Apr 25 10:06:51 2004 at /usr/local/share/perl/5.8.3/CPANPLUS/Internals/Fetch.pm line 163
Couldn't fetch 01mailrc.txt.gz from in CPANPLUS::Internals::Source::_update_source at Sun Apr 25 10:06:51 2004 at /usr/local/share/perl/5.8.3/CPANPLUS/Internals/Source.pm line 539
Unable to update source, attempting to get away with using old source file!
Updating source file '02packages.details.txt.gz'
You have no mirrors defined! Can not fetch anything. in CPANPLUS::Internals::Fetch::_fetch at Sun Apr 25 10:06:51 2004 at /usr/local/share/perl/5.8.3/CPANPLUS/Internals/Fetch.pm line 163
Couldn't fetch 02packages.details.txt.gz from in CPANPLUS::Internals::Source::_update_source at Sun Apr 25 10:06:51 2004 at /usr/local/share/perl/5.8.3/CPANPLUS/Internals/Source.pm line 539
Unable to update source, attempting to get away with using old source file!
Updating source file '03modlist.data.gz'
You have no mirrors defined! Can not fetch anything. in CPANPLUS::Internals::Fetch::_fetch at Sun Apr 25 10:06:51 2004 at /usr/local/share/perl/5.8.3/CPANPLUS/Internals/Fetch.pm line 163
Couldn't fetch 03modlist.data.gz from in CPANPLUS::Internals::Source::_update_source at Sun Apr 25 10:06:51 2004 at /usr/local/share/perl/5.8.3/CPANPLUS/Internals/Source.pm line 539
Unable to update source, attempting to get away with using old source file!
Retrieving /home/mark/.cpanplus/mailrc.2.09.stored
Retrieving /home/mark/.cpanplus/dslip.2.09.stored
Retrieving /home/mark/.cpanplus/packages.2.09.stored
No such module: CGI::Application
All modules installed successfully