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: 29592
Status: resolved
Priority: 0/
Queue: CPAN-Mini

People
Owner: Nobody in particular
Requestors: bohica [...] ntlworld.com
Cc:
AdminCc:

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



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
Subject: Re: [rt.cpan.org #29592] Index files (02* and 03*) not mirrored
Date: Mon, 24 Sep 2007 07:52:30 -0400
To: Martin J Evans via RT <bug-CPAN-Mini [...] rt.cpan.org>
From: Ricardo SIGNES <rjbs [...] cpan.org>
* Martin J Evans via RT <bug-CPAN-Mini@rt.cpan.org> [2007-09-24T06:53:54] Show quoted text
> 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:
Thanks for the bug report, Martin. I think it will end up being just a bit more complicated than you suggest, but probably nothing too tough. I'll try to get to this soon, but I wouldn't expect a new release before November. Life is *very* busy! -- rjbs
Show quoted text
> Thanks for the bug report, Martin. I think it will end up being just > a bit > more complicated than you suggest, but probably nothing too tough. > I'll try to > get to this soon, but I wouldn't expect a new release before November. > Life is > *very* busy!
It is no real problem for me, I just thought I'd let you know. To be honest, I'm not "directly" using CPAN::Mini. I started with CPAN::Mini::Inject after reading "Private CPAN Distributions" (http://www.ddj.com/web-development/184416190) and seeing it would be really useful for us. After running mcpani I did not have the 02 and 03 files and wondered why. I tracked it down to a problem where when using ftp://ftp.cpan.org/pub/CPAN in my config file, the /CPAN bit was being removed in a URI::abs_new and finally realised it was because I needed to add the trailing / on ftp://ftp.cpan.org/pub/CPAN/. mcpani still did not work so I looked at CPAN::Mini and tried mirror_indices and that was where I noticed the issue reported. I've not worked through it all precisely, but for me, adding a call to _install_indices after calling mirror_indices seems to work. Thanks for the prompt reply. Martin -- Martin J. Evans Wetherby, UK
From: CLACO [...] cpan.org
Just a passing note about this bug. I had the same problem with a new install of minicpan on Ubuntu. It appears that minicpan is not creating the $MIRROR/modules directory. The minute I manually created that directory, the next run of minicpan copied the appropriate gz files into that directory and all was well.
Fixed in latest release. Sorry for that! -- rjbs
On Tue Oct 16 07:55:24 2007, RJBS wrote: Show quoted text
> Fixed in latest release. Sorry for that!
Thanks. I'll download and try it out. Martin -- Martin J. Evans Wetherby, UK