in reply to Getting Modules Hot Off the Keyboard

You will need to set ftp.cpan.org as your primary mirror and force CPAN.pm to update its index from there "right now". You could also just wait until the latest release has propagated, as many releases are quickly followed by one or two "fixup" releases that fix typos, packaging errors or other administrivia.

I run a local CPAN mirror that updates every 6 hours, so I'm just 6 hours behind the latest of the greatest. I find that enough :-)

  • Comment on Re: Getting Modules Hot Off the Keyboard

Replies are listed 'Best First'.
Re^2: Getting Modules Hot Off the Keyboard
by jkeenan1 (Deacon) on Oct 08, 2005 at 18:40 UTC
    Talk about a rapid response! Thanks!

    But, IIUYC, I can't get anything until the distribution has made it to ftp://ftp.cpan.org -- at least not through the cpan shell. For normal installation purposes, that's fine. But I was wondering if there was something I could use (other than manual downloading) for a quick look-see-and-test.

    Jim Keenan

    UPDATE one day later: I've decided to try hacking something which uses LWP::Simple::getstore() to retrieve the file from http://www.cpan.org, tests it, and sends a report with Test::Reporter. I'll post it when I get it somewhat functional. Thanks for all who have read this far.

    UPDATE 2: Here is the aforepromised hack. It DWIMs with one key exception: The mail sent isn't showing up immediately on perl.cpan.testers (either web interface or newsgroup). This is the first time I've attempted to send mail from within a Perl program, so maybe there's something I don't understand. OTOH, when I've sent ordinary mail to that list, it has sometimes taken 12 hours to get posted.

    In any event, have at it gang!

    Jim Keenan

      I think you can also set http://www.cpan.org/ (or maybe http://www.cpan.org/CPAN/ or something) as a mirror in your mirror list. CPAN.pm uses LWP to retrieve the files. I use a local mirror mounted via samba and have file://server/cpan/minicpan as my top mirror in the CPAN list.

        http://www.cpan.org/ appears to be the correct setting.

        I notice that whenever today I have attempted to 'get' or 'test' a module, the shell gives me a message like this:

        cpan> get Test::Tester CPAN: Storable loaded ok Going to read /Users/jimk/.cpan/Metadata Database was generated on Sat, 08 Oct 2005 08:01:00 GMT

        ... which suggests to me that I'm not getting the hot-off-the-keyboard distributions because the Metadata file has not yet been updated. Is that the obstacle?

        Jim Keenan

      How hot do you want it? If they have a subversion or CVS repo, maybe you want to check that out so you can just update and set $PERL5LIB for a while to play with the new toys. I've been doing something crazy with symlinks for over a year now. It doesn't get much hotter!

        Well, now that you put it that way, maybe not quite that hot. I'm essentially looking to do a quick test on distros with which I'm already familiar and get a test report out once the distro hits CPAN.