On 2010.5.1 12:24 PM, David Golden wrote:
>> What's the proper way to remove something from the provides metadata without
>> having to rewrite the whole thing?
>
> I think it's the usual two-line trick:
>
> package # hide from provides
> UNIVERSAL;
Pragmatic, but its magical, tribal knowledge.
What I wound up doing is setting both no_index and overriding get_metadata to
remove it from provides. It was non-obvious and more work than necessary.
It seems that PAUSE honors provides but will not listen to no_index if
META.yml has a provides. There's no (easy) way to stop Module::Build from
generating a provides section. Given that, no_index doesn't have much effect.
PAUSE doesn't listen to it and Module::Build doesn't either.
I say no_index should influence the generation of provides, yes?
--
3. Not allowed to threaten anyone with black magic.
-- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
http://skippyslist.com/list/