rwstauner/Dist-Metadata — pull request #4 by thaljef (2012-06-08 19:21:39+00:00)
Title: Option to make Dist::Metadata behave like PAUSE

Hi Randy-

Wondering if you'd consider this feature...

I've added a like_pause option to the D::M constructor. If this flag is set, D::M will not report packages that do not match the basename of the containing file, which is how PAUSE behaves. This only applies to packages that are discovered by scanning files -- packages reported in the META are always included. This helps me (and possibly others) manage private CPAN repositories. So when I index distributions, the results are little closer to what PAUSE says.

It is a bit ugly, but I did wedge some unit tests in for this feature as well.

Let me know what you think.

-Jeff