Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Mini CPAN distribution.

Report information
The Basics
Id: 75826
Status: open
Priority: 0/
Queue: CPAN-Mini

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

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



Subject: Dists are still indexed, even if they are in "path_filters"
Download (untitled) / with headers
text/plain 3.7k
I've set up .minicpanrc with "path_filters: .", to avoid adding any content from the public CPAN. However, all these distributions are still indexed in modules/02packages.details.txt.gz and modules/03modlist.data.gz... which causes searches to blow up, e.g. via minicpan_webserver (CPAN::Mini::Webserver): Error reading /home/ether/cpanmini-real/content/authors/id/C/CH/CHRISY/Net-Elexol-EtherIO24-0.22.tar.gz at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Archive/Peek/Tar.pm line 10 Archive::Peek::Tar::tar('Archive::Peek::Tar=HASH(0x6337e58)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Archive/Peek/Tar.pm line 17 Archive::Peek::Tar::files('Archive::Peek::Tar=HASH(0x6337e58)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Parse/CPAN/Packages/Distribution.pm line 31 Parse::CPAN::Packages::Distribution::list_files('Parse::CPAN::Packages::Distribution=HASH(0x9b2cdf8)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Parse/CPAN/Packages/Package.pm line 14 Parse::CPAN::Packages::Package::filename('Parse::CPAN::Packages::Package=HASH(0x9b2a668)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Parse/CPAN/Packages/Package.pm line 24 Parse::CPAN::Packages::Package::file_content('Parse::CPAN::Packages::Package=HASH(0x9b2a668)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/CPAN/Mini/Webserver.pm line 358 CPAN::Mini::Webserver::_add_search_preview('CPAN::Mini::Webserver=HASH(0x4d5c780)', 'Parse::CPAN::Packages::Package=HASH(0x9b2a668)', 'ether') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/CPAN/Mini/Webserver.pm line 350 CPAN::Mini::Webserver::_packages_with_search_preview('CPAN::Mini::Webserver=HASH(0x4d5c780)', 'ARRAY(0x4d7a040)', 'ether') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/CPAN/Mini/Webserver.pm line 333 CPAN::Mini::Webserver::search_page('CPAN::Mini::Webserver=HASH(0x4d5c780)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/CPAN/Mini/Webserver.pm line 231 CPAN::Mini::Webserver::dispatch('CPAN::Mini::Webserver=HASH(0x4d5c780)', '/search/', undef, undef, undef, undef, undef, undef, undef, ...) called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/CPAN/Mini/Webserver.pm line 224 CPAN::Mini::Webserver::_handle_request('CPAN::Mini::Webserver=HASH(0x4d5c780)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/CPAN/Mini/Webserver.pm line 183 CPAN::Mini::Webserver::__ANON__() called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Try/Tiny.pm line 71 eval {...} called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x6314e78)', 'Try::Tiny::Catch=REF(0x4d1d7b0)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/CPAN/Mini/Webserver.pm line 188 CPAN::Mini::Webserver::handle_request('CPAN::Mini::Webserver=HASH(0x4d5c780)', 'CGI=HASH(0x62fd200)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/HTTP/Server/Simple/CGI.pm line 154 eval {...} called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/HTTP/Server/Simple/CGI.pm line 154 HTTP::Server::Simple::CGI::handler('CPAN::Mini::Webserver=HASH(0x4d5c780)') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/HTTP/Server/Simple.pm line 402 HTTP::Server::Simple::__ANON__('CPAN::Mini::Webserver::NetServer0') called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/HTTP/Server/Simple.pm line 307 HTTP::Server::Simple::__ANON__('CPAN::Mini::Webserver::NetServer0', 'port', 5002) called at /home/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/HTTP/Server/Simple.pm line 271 HTTP::Server::Simple::run('CPAN::Mini::Webserver=HASH(0x4d5c780)') called at /home/perlbrew/perls/perl-5.14.2/bin/minicpan_webserver line 23
Download (untitled) / with headers
text/plain 181b
Are you suggesting that files excluded by path filters should not appear in 02packages, and that we should write a new 02packages, rather than mirror the remote's exactly? -- rjbs
Download (untitled) / with headers
text/plain 587b
On Sat Apr 13 04:39:42 2013, RJBS wrote: Show quoted text
> Are you suggesting that files excluded by path filters should not > appear in 02packages, and that we should write a new 02packages, > rather than mirror the remote's exactly?
That was my expectation. However, I was trying to use CPAN::Mini as a sparse mirror, which may not be a supported usecase. Should it be possible to use this tool to curate a subset of the CPAN, or even to serve distributions that aren't in PAUSE at all? (Pinto can, and seems to be more equipped to handle this, but cpanmini possibly ought to be able to as well.)
I think this is reasonable and will accept a patch to do this. -- rjbs


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.