Subject: | CPANPLUS::Backend->install() always reindexes |
Date: | Thu, 7 Aug 2008 15:18:49 +0100 |
To: | bug-CPANPLUS [...] rt.cpan.org |
From: | Kidney Bingos <chris [...] bingosnet.co.uk> |
Hi,
As discussed in IRC, when using the install() method of CPANPLUS::Backend it appears to always reindex
by downloading the *.gz from the configured cpan mirror.
Testcase:
=========
use strict;
use warnings;
use CPANPLUS::Backend;
my $cb = CPANPLUS::Backend->new();
$cb->configure_object()->set_conf( prereqs => 1 );
$cb->install( modules => [ 'YAML::Tiny' ] );
$cb->install( modules => [ 'Test::Reporter' ] );
Output:
=======
[canker:~]$ /home/chris/dev/perlmods/creator/test/perl/bin/perl testcase.pl
[MSG] Checking if source files are up to date
[MSG] Updating source file '01mailrc.txt.gz'
[MSG] Trying to get 'http://www.cpan.org/authors/01mailrc.txt.gz'
[MSG] Updating source file '03modlist.data.gz'
[MSG] Trying to get 'http://www.cpan.org/modules/03modlist.data.gz'
[MSG] Updating source file '02packages.details.txt.gz'
[MSG] Trying to get 'http://www.cpan.org/modules/02packages.details.txt.gz'
[MSG] No '/home/chris/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] Rebuilding author tree, this might take a while
[MSG] Rebuilding module tree, this might take a while
[MSG] No '/home/chris/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] No '/home/chris/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] Writing compiled source information to disk. This might take a little while.
[MSG] Module 'YAML::Tiny' already up to date, won't install without force
[MSG] Module 'Test::Reporter' already up to date, won't install without force
[canker:~]$ /home/chris/dev/perlmods/creator/test/perl/bin/perl testcase.pl
[MSG] Checking if source files are up to date
[MSG] Updating source file '01mailrc.txt.gz'
[MSG] Trying to get 'http://www.cpan.org/authors/01mailrc.txt.gz'
[MSG] Updating source file '03modlist.data.gz'
[MSG] Trying to get 'http://www.cpan.org/modules/03modlist.data.gz'
[MSG] Updating source file '02packages.details.txt.gz'
[MSG] Trying to get 'http://www.cpan.org/modules/02packages.details.txt.gz'
[MSG] No '/home/chris/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] Rebuilding author tree, this might take a while
[MSG] Rebuilding module tree, this might take a while
Cheers,
--
Chris Williams
aka BinGOs
PGP ID 0x4658671F
http://www.gumbynet.org.uk
==========================
Message body not shown because it is not plain text.