Skip Menu |

This queue is for tickets about the Test-Config-System CPAN distribution.

Report information
The Basics
Id: 28173
Status: resolved
Priority: 0/
Queue: Test-Config-System

People
Owner: iank [...] cpan.org
Requestors: cpan [...] philsplace.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 0.50



Subject: Feature Request
It would be nice to be able to check a list of packages to see if any one of them is installed. Something like: any_package(['libtest-config-system-perl', 'cpan-libtest-config-system-perl'], 'Test::Config::System is installed'); If a person used cpan2dist (or a similar tool) to create their own perl packages then they may have the "original" vendor supplied version (if it existed) or a newer version. We may not really care which one. Just an idea... TIA!
Subject: Feature Request (any_package)
From: iank [...] cpan.org
On Fri Jul 13 20:22:17 2007, cpan@philsplace.org wrote: Show quoted text
> It would be nice to be able to check a list of packages to see if any > one of them is installed. > > Something like: > > any_package(['libtest-config-system-perl', > 'cpan-libtest-config-system-perl'], 'Test::Config::System is installed'); > > If a person used cpan2dist (or a similar tool) to create their own perl > packages then they may have the "original" vendor supplied version (if > it existed) or a newer version. We may not really care which one. > > Just an idea... > > TIA!
So, that's a really good idea :). I've not run into it yet because our site is rather homogenous, but I know in the future I'll hit problems where I try to test packages that are differently named on different distros (eg ntp-server vs ntpd). I'll start working on it. I hate to make promises, as it just tempts Murphy, but I think I'll have it uploaded some time within the next few days.
I've just uploaded Test::Config::System 0.50, which contains the check_any_package function. It should be indexed within a few hours. Thanks.
From: cpan [...] philsplace.org
On Sun Jul 15 12:18:13 2007, IANK wrote: Show quoted text
> I've just uploaded Test::Config::System 0.50, which contains the > check_any_package function. It should be indexed within a few hours. > > Thanks.
Most excellent, thanks!