in reply to Re: CPANPLUS won't install distros by name (e.g. Scalar-List-Utils)
in thread CPANPLUS won't install distros by name (e.g. Scalar-List-Utils)
I've not yet had the time to properly figure out how exactly CPANPLUS knows about package dependencies, but I think it's using 02packages.details.txt.gz (it is at least mentioned in there). Doesn't that give the required information to map a authorless and versionless distribution name to at least the most recent full distribution name?
For now I'm using Parse::CPAN::Distributions to get the latest author and version from the bare distribution name, and giving that to CPANPLUS. (Both author and version are needed, even for the latest version.) That seems to do the trick, although it's slow to download the find-ls data.
Perhaps CPANPLUS could do the same, either using P::C::D as I do, or by inspecting 02packages.details.txt.gz or find-ls itself?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CPANPLUS won't install distros by name (e.g. Scalar-List-Utils)
by Anonymous Monk on Nov 10, 2009 at 16:07 UTC |