Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 14578
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.0562
Fixed in: (no value)



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
[CDOLAN - Tue Sep 13 12:01:09 2005]: Show quoted text
> That shell offers an > "x" option that rebuilds the module index cache, but does not re- > download the source index files.
This option has actually always been present, but perhaps not documented in an intuitive location. I've updated the Default's shell perldoc/runtime help as follows @12248s: [Local Administration] b # write a bundle file for your configuration s program [OPT VALUE] # set program locations for this session s conf [OPT VALUE] # set config options for this session s mirrors # show currently selected mirrors s reconfigure | save # reconfigure settings / save current settings s edit # open configuration file in editor and reload /source FILE [FILE ..] # read in commands from the specified file ! EXPR # evaluate a perl statement p [FILE] # print the error stack (optionally to a file) x # reload CPAN indices (purges cache) x --update_source # reload CPAN indices, get fresh source files Hope this answers your question.
[KANE - Wed Sep 14 05:06:32 2005]: Show quoted text
> [CDOLAN - Tue Sep 13 12:01:09 2005]: >
> > That shell offers an > > "x" option that rebuilds the module index cache, but does not re- > > download the source index files.
> > This option has actually always been present, but perhaps not > documented in an intuitive > location. I've updated the Default's shell perldoc/runtime help as > follows @12248s:
Great! Thanks, Jos!