Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: dma [...] knight-rider.org
Cc:
AdminCc:

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



Subject: Rebuild command fails after loss of network on new module install.
Steps: cpanp i Net::Telnet pull the network cord. (in my case lost my router.) Now get this? Could not install Net::Telnet. said corrupt source tree.. CPAN Terminal> x [ERROR] Error rebuilding source trees! CPAN Terminal> purge [CP_MSG] [Fri Feb 17 17:51:43 2006] Checking if source files are up to date [CP_MSG] [Fri Feb 17 17:51:43 2006] Rebuilding author tree, this might take a wh ile [CP_MSG] [Fri Feb 17 17:51:43 2006] Rebuilding module tree, this might take a wh ile [CP_ERROR] [Fri Feb 17 17:51:43 2006] Error rebuilding source trees! There doesn't seem to be any docs to how to resolve this or even a hint in the error message. Would be good to be more descriptive of why it fails to rebuild. perl -v This is perl, v5.8.7 built for i486-linux-gnu-thread-multi uname -a Linux eclipse 2.6.12-1-k7 #1 Tue Sep 6 16:28:10 UTC 2005 i686 GNU/Linux (Debian) Damon
Show quoted text
> There doesn't seem to be any docs to how to resolve this or even a hint > in the error message. Would be good to be more descriptive of why it > fails to rebuild.
I've improved the documentation on what to do. both the help command and the documentation now show the --update_source switch that forces refetching of the CPAN sources, and a failed x command will also give you a hint on what to do. This has been committed as change 12390: CPAN Terminal> x [MSG] Checking if source files are up to date [ERROR] Error rebuilding source trees! Failure may be due to corrupt source files Try this: x --update_source CPAN Terminal> x --update_source [...] CPAN Terminal> Hopefully this will make it easier in the future to discern what is happening. Thanks for reporting,