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

People
Owner: Nobody in particular
Requestors: cpan [...] ali.as
Cc:
AdminCc:

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



Subject: CPAN::Mini loses sync if previous run is not perfect
CPAN::Mini uses the state of the index files to determine if anything needs to be done (excluding when the _force_ option is on). If a download and sync run (or something else in a subclass in my case) fails part way through, when CPAN::Mini checks these indexes they appear up to date, and minicpan does not grab the extra missing files. CPAN::Mini should ALWAYS parse the packages file and double check that all the files listed do at least appear on the local filesystem. Otherwise we are left with a broken repository until the next update of the remote mirror.
Ooops, this appears to be my fault. I overloaded mirror_file in my subclass, but didn't pass on skip_if_present, so I assumed "force" meant "always hit the web to recheck every file" (which was stupidly slow) and not "check the index against what is on disk" (which is what it actually does). You can resolve this with no action required.