Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Wednesday December 21, 2005
04:35 PM

Test::Prereq will get a little less stupid

[ #28085 ]

Test::Prereq looks at a module distribution and tells me what I left out of PREREQ_PM.

It's an ugly hack where I took a lot of shortcuts and should probably be Exhibit A at my preogrammer status revokation hearing.

Offer Kaye asked me about making it work with CPANPLUS since it presently uses CPAN::Shell. If you don't have configured, however, things blow up.

After a couple of messages back and forth, Offer says "Why not just read the packages file yourself". I said, "Yeah, if you want to do it the smart way, I guess".

I think I thought of that originally, but I still live in that fantasy land where works everywhere.

We left off talking about how to get packages.02.tgz. I don't want to always hit the network, and even when I do, I don't want to bang on the same CPAN mirror. Also, once the module fetches the file, it shouldn't fetch it again if it hasn't been updated, but that means storing it somewhere. Modules that make files behind your back are Not The Best, even if it is documented.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I did something similar for the Fink project, where I wanted to determine the prereqs of a module for insertion into a Debian-like dependency system. This is in the Fink CVS, and I can provide a pointer upon request.

    If you want to see an example of leveraging CPANPLUS, take a look at my Module::License::Report module. It performs a subset of the work that my Fink tool does, but it's a lot more robust.

      -- Chris