Skip Menu |

This queue is for tickets about the Acme-MetaSyntactic-Themes CPAN distribution.

Report information
The Basics
Id: 93890
Status: open
Priority: 0/
Queue: Acme-MetaSyntactic-Themes

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

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



Subject: use CPAN::Common::Index to find PAUSE id info
from #perl-qa, 2014-02-19: 14:20 <@BooK> ether: Acme::MetaSyntactic::pause_id actually starts CPAN.pm to find the list of author id CPAN::Common::Index is becoming the central place to communicate with PAUSE. this module should drink the koolaid too. (this is a placeholder ticket so we don't forget.)
On Sat Mar 15 13:24:46 2014, ETHER wrote: Show quoted text
> from #perl-qa, 2014-02-19: > > 14:20 <@BooK> ether: Acme::MetaSyntactic::pause_id actually starts > CPAN.pm to find the list of author id > > > CPAN::Common::Index is becoming the central place to communicate with > PAUSE. this module should drink the koolaid too. > > > (this is a placeholder ticket so we don't forget.)
I'd like to use CPAN::Common::Index, but from my understanding, it needs to be pointed at the sources of information to use. I'd rather use a local cache of the information, which is typically what CPAN.pm provides. The simplest setup I found is: use CPAN::Common::Index::Mux::Ordered; use CPAN; CPAN::HandleConfig->load(); $index = CPAN::Common::Index::Mux::Ordered->assemble( Mirror => { mirror => "file://$CPAN::Config->{keep_source_where}" }, ); I still need to do most of the dance required to silence CPAN.pm when it tries to configure itself for the first time. I haven't been able yet to obtain the list of all authors id from $index, but I suppose I must be doing something wrong. It would be nice if CPAN::Common::Index had a configuration file, and even better, if it was able to configure itself automagically when it has no configuration file at hand. -- BooK
RT-Send-CC: dagolden [...] cpan.org
On 2014-03-17 09:17:11, BOOK wrote: Show quoted text
> The simplest setup I found is:
... Show quoted text
> I haven't been able yet to obtain the list of all authors id from > $index, but I suppose I must > be doing something wrong.
CPAN::Common::Index should have some cookbook documentation. Show quoted text
> It would be nice if CPAN::Common::Index had a configuration file, and > even better, if it was able to > configure itself automagically when it has no configuration file at > hand.
A local config file (so cpan code would run differently depending on who runs it, according to local preferences), as well as some clear directives from the calling code about what backends are preferred... Yesterday I was pondering using the 'less' pragma so "use less 'memory'", 'use less "disk"' etc could help choose between backends. But, that should be discussed in its queue, not here! :)