To: | bug-cpanplus [...] rt.cpan.org |
From: | David Wheeler <david [...] kineticode.com> |
Subject: | Inconsistent Source Files |
Date: | Fri, 28 Jan 2005 08:30:42 -0800 |
I have four servers on which I routinely install modules from CPAN
using CPANPLUS. They all use the same mirrors, and yet they are
inconsistently up-to-date. For example, I wanted to install my new
module this morning, Class::Delegator. On my Mac, I got:
============================================================
CPAN Terminal> x --update_source
[MSG] Checking if source files are up to date
[MSG] Updating source file '01mailrc.txt.gz'
[MSG] Trying to get
'ftp://ftp.cpan.org/pub/CPAN/authors/01mailrc.txt.gz'
[MSG] Updating source file '03modlist.data.gz'
[MSG] Trying to get
'ftp://ftp.cpan.org/pub/CPAN/modules/03modlist.data.gz'
[MSG] Updating source file '02packages.details.txt.gz'
[MSG] Trying to get
'ftp://ftp.cpan.org/pub/CPAN/modules/02packages.details.txt.gz'
[MSG] Rebuilding author tree, this might take a while
[MSG] Rebuilding module tree, this might take a while
CPAN Terminal> i Class::Delegator
Installing Class::Delegator
...
============================================================
It then successfully installed. On my Linux box, however (behind the
same IP, FWIW), I got:
CPAN Terminal> x --update_source
[MSG] Checking if source files are up to date
[MSG] Updating source file '01mailrc.txt.gz'
[MSG] Trying to get
'ftp://ftp.cpan.org/pub/CPAN/authors/01mailrc.txt.gz'
[MSG] Updating source file '03modlist.data.gz'
[MSG] Trying to get
'ftp://ftp.cpan.org/pub/CPAN/modules/03modlist.data.gz'
[MSG] Updating source file '02packages.details.txt.gz'
[MSG] Trying to get
'ftp://ftp.cpan.org/pub/CPAN/modules/02packages.details.txt.gz'
[MSG] Rebuilding author tree, this might take a while
[MSG] Rebuilding module tree, this might take a while
CPAN Terminal> i Class::Delegator
[ERROR] 'Class::Delegator' does not contain an author part
[ERROR] Cannot find 'Class::Delegator' in the module tree
No such module: Class::Delegator
No modules found to operate on!
Nothing done
============================================================
Note that they're using *exactly* the same URLs to grab the source
files. The files are not, however, the same. On my Mac:
-rw-r--r-- 1 david david 94464 28 Jan 08:03 01mailrc.txt.gz
-rw-r--r-- 1 david david 2349085 28 Jan 08:03 02packages.details.txt
-rw-r--r-- 1 david david 335994 28 Jan 08:03 03modlist.data
And on my Linux box:
-rw-rw-r-- 1 david david 94464 Jan 28 08:21 01mailrc.txt.gz
-rw-rw-r-- 1 david david 332851 Jan 28 08:21
02packages.details.txt.gz
-rw-rw-r-- 1 david david 95614 Jan 28 08:21
03modlist.data.gz
Note how much smaller 02packages.details.txt.gz and 03modlist.data.gz
are? Could CPANPLUS be caching older files or something? I tried to
install the latest version of DateTime today, too, and much to my
surprise, on my Linux box, it installed version 0.22, which was
released 2004-07-23. There have been three releases since then,
including one yesterday!
So could CPANPLUS be caching older or incomplete source files
somewhere? And why on only some boxes and not others? FWIW, I didn't
have this problem with 0.0499.
Regards,
David