Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 22749
Status: resolved
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: imacat [...] mail.imacat.idv.tw
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.8801
Fixed in: (no value)



Subject: Package File and CHECKSUMS from Different Mirror Sources
Hi. This is imacat from Taiwan. I found that CPAN is NOT downloading CHECKSUMS alone with the package file (*.tar.gz) from the SAME source. This morning when I was updating the newly-updated DBI-1.53, it cannot match CHECKSUMS with DBI-1.53.tar.gz since they came from 2 different sources, and each has its own mirror schedule. The package file DBI-1.53.tar.gz came from a mirror that has it, but CHECKSUMS came from another that doesn't have it yet. Shouldn't they be downloaded from the same mirror source? The result is below. Please tell me if there is any problem. Thank you. root@odin~# cpan T/TI/TIMB/DBI-1.53.tar.gz CPAN: File::HomeDir loaded ok Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Wed, 01 Nov 2006 22:24:31 GMT CPAN: HTTP::Date loaded ok Going to read /root/.cpan/sources/modules/03modlist.data.gz CPAN: Storable loaded ok Going to write /root/.cpan/Metadata Running make for T/TI/TIMB/DBI-1.53.tar.gz CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/authors/id/T/TI/TIMB/DBI-1.53.tar.gz LWP failed with code[404] message[File 'DBI-1.53.tar.gz' not found] Fetching with Net::FTP: ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/authors/id/T/TI/TIMB/DBI-1.53.tar.gz Couldn't fetch DBI-1.53.tar.gz from cpan.cdpa.nsysu.edu.tw: Can't open DBI-1.53.tar.gz: No such file or directory Fetching with LWP: ftp://cpan.cs.pu.edu.tw/pub/CPAN/authors/id/T/TI/TIMB/DBI-1.53.tar.gz LWP failed with code[404] message[File 'DBI-1.53.tar.gz' not found] Fetching with Net::FTP: ftp://cpan.cs.pu.edu.tw/pub/CPAN/authors/id/T/TI/TIMB/DBI-1.53.tar.gz Couldn't fetch DBI-1.53.tar.gz from cpan.cs.pu.edu.tw: Can't open DBI-1.53.tar.gz: No such file or directory Fetching with LWP: ftp://ftp.stu.edu.tw/CPAN/authors/id/T/TI/TIMB/DBI-1.53.tar.gz CPAN: Digest::SHA loaded ok Fetching with LWP: ftp://cpan.cdpa.nsysu.edu.tw/Unix/Lang/CPAN/authors/id/T/TI/TIMB/CHECKSUMS Warning: No checksum for DBI-1.53.tar.gz in /root/.cpan/sources/authors/id/T/TI/TIMB/CHECKSUMS. The cause for this may be that the file is very new and the checksum has not yet been calculated, but it may also be that something is going awry right now. Proceed? [yes]
CC: undisclosed-recipients:;
Subject: Re: [rt.cpan.org #22749] Package File and CHECKSUMS from Different Mirror Sources
Date: Thu, 02 Nov 2006 07:49:31 +0100
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.gmwojprw [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Wed, 01 Nov 2006 23:30:44 -0500, " via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> Wed Nov 01 23:30:44 2006: Request 22749 was acted upon. > Transaction: Ticket created by IMACAT > Queue: CPAN > Subject: Package File and CHECKSUMS from Different Mirror Sources > Broken in: 1.8801 > Severity: Normal > Owner: Nobody > Requestors: imacat@mail.imacat.idv.tw > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=22749 >
Show quoted text
> Hi. This is imacat from Taiwan.
Show quoted text
> I found that CPAN is NOT downloading CHECKSUMS alone with the > package file (*.tar.gz) from the SAME source. This morning when I was > updating the newly-updated DBI-1.53, it cannot match CHECKSUMS with > DBI-1.53.tar.gz since they came from 2 different sources, and each has > its own mirror schedule. The package file DBI-1.53.tar.gz came from a > mirror that has it, but CHECKSUMS came from another that doesn't have it > yet. Shouldn't they be downloaded from the same mirror source?
For young files there is often a short timespan within which there is no entry in the checksums file yet, even if they come from the same host. As you are always working with very young files, I'm surprised it doesn't happen more often to you. But in principle you are right, CPAN.pm should try to get checksums file from the same host because the likelihood is higher to get an uptodate one. I'll investigate if there is a chance. -- andreas
On 2006-11-02 02:00:35 星期四, andreas.koenig.gmwojprw@franz.ak.mind.de wrote: Show quoted text
> >>>>> On Wed, 01 Nov 2006 23:30:44 -0500, " via RT" <bug-
> CPAN@rt.cpan.org> said: > For young files there is often a short timespan within which there is > no entry in the checksums file yet, even if they come from the same > host. As you are always working with very young files, I'm surprised > it doesn't happen more often to you.
In fact you are right. It happens all the time for me, since I update my system very often. But this is the first time I decide to report it and work it out. I shouldn't ignore the warning forever. Show quoted text
> But in principle you are right, CPAN.pm should try to get checksums > file from the same host because the likelihood is higher to get an > uptodate one.
Thank you for taking care of this issue.
Fixed in 1.88_61