Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 6122
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.049
Fixed in: (no value)



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
From: markstos [...] cpan.org
Doh. I figured out to add some mirrors. I did that, and try again. I still got the same strange result: ###### Your current hosts are: archive.progeny.com slugsite.louisville.edu csociety-ftp.ecn.purdue.edu ftp.cpan.org Your CPAN++ configuration info has been saved! CPAN Terminal> i CGI::Application No such module: CGI::Application All modules installed successfully ################# After saving the config file, shouldn't there at least be some kind of notice that I might want to reload the configuration? I expected it would "just work" after I added the mirrors.
First of all, sorry for the /very/ late reply -- your mail got lost somewhere in my inbox... [guest - Sun Apr 25 11:17:48 2004]: Show quoted text
> Doh. > > I figured out to add some mirrors. I did that, and try again. I still > got the same strange result: > > ###### > > Your current hosts are: > archive.progeny.com > slugsite.louisville.edu > csociety-ftp.ecn.purdue.edu > ftp.cpan.org > > > Your CPAN++ configuration info has been saved! > > CPAN Terminal> i CGI::Application > No such module: CGI::Application > All modules installed successfully > > ################# > > After saving the config file, shouldn't there at least be some kind of > notice that I might want to reload the configuration? I expected it > would "just work" after I added the mirrors.
well, as the previous output stated: 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 which means it's now using old source files, that didn't have cgi::application in it. hitting 'x' in the shell will refetch the source files, and should make the module you are looking for appear. As far as the output goes, i'll see if i can make the messages somewhat userfriendlier.