In article <[EMAIL PROTECTED]>, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
> * brian d foy <[EMAIL PROTECTED]> [2007-11-13 21:10]: > > In article <[EMAIL PROTECTED]>, David > > Cantrell <[EMAIL PROTECTED]> wrote: > > > On Mon, Nov 12, 2007 at 10:53:42PM +0100, A. Pagaltzis wrote: > > > > > and: > > > > > > " Foo::Bar is in distribution AUTHOR/Foo-Bar which also > > > contains Foo::Bar::Baz, so I only need to declare one of > > > them to get both. " > > > > > > This is also an error, as Foo::Bar::Baz might be moved into a > > > seperate distribution at some point in the future > > > > Well, that's why you check the current distribution to see what > > it provides. I do this in Test::Prereq. > > Consider Test::Harness::Straps getting released as a separate > distro recently. Any modules that only use ::Straps but list > Test::Harness as a prereq will now fail to install. If Straps is the only thing that you use, then that's the only thing you should list. If Straps has dependencies, it lists those. Test::Prereq would see what the Straps distro provides and only remove those from the prereq list. If Straps doesn't provide anything else, it doesn't remove anything else. I'm not sure why you think it's some other way.