Subject: | Index files (02* and 03*) not mirrored |
Hi,
My mirror does not appear to work properly with respect to the 3 index
files 01mailrc.txt.gz, 02packages.details.txt.gz and 03modlist.data.gz
in modules dirs. If I run:
use CPAN::Mini;
my $x = CPAN::Mini->new(remote => "ftp://ftp.cpan.org/pub/CPAN/",
local => "/home/martin/MCPANI",
trace => 1);
$x->mirror_indices;
the output I get is:
authors/01mailrc.txt.gz ... updated
modules/02packages.details.txt.gz ... updated
modules/03modlist.data.gz ... updated
but none of the files exist in /home/martin/MCPANI. When I debug the
code it appears to call mirror_file once for each of the 3 fixed files
but with to_scratch => 1, but there is no code I can find which copies
the 3 files from the scratch directory to my local directory and
File::Temp simply deletes the mirrored files in /tmp when the File::Temp
object is deleted.
I believe the issue is that _install_indices needs to be called at the
end of mirror_indices as in update_mirror?
I am using Perl v5.8.8 on Linux/Ubuntu.
Martin
--
Martin J. Evans
Wetherby, UK