develooper Front page | perl.module.build | Postings from February 2008

the mysterious PAUSE indexer

From:
Eric Wilhelm
Date:
February 16, 2008 19:48
Subject:
the mysterious PAUSE indexer
Message ID:
200802161947.46909.ewilhelm@cpan.org
Hi all,

I often find myself wondering "what does the PAUSE indexer do if ... ?" 
(and I think we've had a few discussions that involved the question.)

Well, now you can ask it yourself.

  http://scratchcomputing.com/svn/pausehack/trunk

Just run setup.sh (if you want it to automatically checkout pause from 
svn and check dependencies (I think that list is partly complete.))

Then symlink bin/mldistwhat into your ~/.bin/.

Running it on your prospective tarball makes a lot of noise, but tells 
you (roughly) what the indexer will think about it when you upload it.

This is only an estimate of what will happen when it is uploaded because 
it omits all of the database lookups, but as far as I can tell the 
indexing is independent of the database (except for e.g. namespace 
ownership.)

Don't look inside the code either ;-)

So, now we have a way to verify things like:  the 'provides' bit of 
META.yml is only currently examined if there are no .pm files found.  
Thus, you can upload a module claiming to provide 'bin-foo' as long as 
it has no .pm files.

--Eric
-- 
perl -e 'srand; print join(" ",sort({rand() < 0.5}
  qw(sometimes it is important to be consistent)));'
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About