develooper Front page | | Postings from February 2008

the mysterious PAUSE indexer

Eric Wilhelm
February 16, 2008 19:48
the mysterious PAUSE indexer
Message ID:
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.

Just run (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 

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.

perl -e 'srand; print join(" ",sort({rand() < 0.5}
  qw(sometimes it is important to be consistent)));'
--------------------------------------------------- Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About