Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 15293
Status: rejected
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: jesse [...] fsck.com
Cc:
AdminCc:

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



Date: Mon, 24 Oct 2005 13:27:11 -0400
From: Jesse Vincent <jesse [...] fsck.com>
To: bug-cpanplus [...] rt.cpan.org
Subject: CPANPLUS doesn't cope with "file" type urls in your config....
At least not in the way that I'd expect. 'hosts' => [ { path => '//home/jesse/mirrors/minicpan', scheme => 'file' }, and 'hosts' => [ { path => '/home/jesse/mirrors/minicpan', scheme => 'file' }, Both generate urls of the form file://home/jesse/... That's one slash too few, so it fails. Next up, I try a host name of '/'
From: "Jos I. Boumans" <kane [...] xs4all.net>
Subject: Re: [cpan #15293] CPANPLUS doesn't cope with "file" type urls in your config....
Date: Tue, 25 Oct 2005 21:41:13 +0200
To: bug-CPANPLUS [...] rt.cpan.org
RT-Send-Cc:
On Oct 25, 2005, at 8:29 PM, Jesse via RT wrote: Show quoted text
> > This message about CPANPLUS was sent to you by jesse@fsck.com > <jesse@fsck.com> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=15293 >
There's specific code that limits it to 2 slashes... using LWP under the hood: $ rm foo; echo 1 >> foo ; perlc -MFile::Fetch -wle'$f=File::Fetch->new( uri => "file://tmp/foo"); print $f->fetch( to => "/tmp/bar" ) or die' /tmp/bar/foo $ rm foo; echo 1 >> foo ; perlc -MFile::Fetch -wle'$f=File::Fetch->new( uri => "file:///tmp/foo"); print $f->fetch( to => "/tmp/bar" ) or die' /tmp/bar/foo they both work.. 2 and 3 slashes... Is there any point where 3 consecutive slashes are a must? i'ts patchable, but not convenient... not a wizz on URI's myself, just found this works on all platforms so far (the test suite uses file:// uris you see) -- Jos Boumans "Whenever you find you are on the side of the majority, it is time to pause and reflect." - Mark Twain CPANPLUS http://cpanplus.sf.net