Subject: | No option to force re-downloading index files |
[Note this problem is mentioned in another bug, but I feel it deserves a bug of its own. http://rt.cpan.org/NoAuth/Bug.html?id=12354]
CPANPLUS has a heuristic that if it's CPAN index is newer than a certain amount of time, it will refrain from re-downloading the index files. This is a good feature that saves time, but there is no way to override this in the default shell. That shell offers an "x" option that rebuilds the module index cache, but does not re-download the source index files.
In some cases, it is useful to re-fetch those index files for testing, like if I want to try out a brand-new CPAN package that just hit the mirrors.
Four possible solutions off the top of my head:
* Change "x" to download the index files regardless of age
* Add a new shell command to download index files
* Make "force x" be valid syntax that will download the index files
* Add a note in the runtime Help that explains how to kill the cached downloaded index files. For example:
rm ~/.cpanplus/0{1mailrc.txt,2packages.details.txt,3modlist.data}.gz