Mageia Bugzilla – Attachment 495 Details for
Bug 1469
Mirrors website shows mirror to be unavailable while in fact it is reachable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch to replace // by / on uri check
bug_1469.diff (text/plain), 545 bytes, created by
Michael Scherer
on 2011-05-29 10:32:17 CEST
(
hide
)
Description:
patch to replace // by / on uri check
Filename:
MIME Type:
Creator:
Michael Scherer
Created:
2011-05-29 10:32:17 CEST
Size:
545 bytes
patch
obsolete
>Index: lib/MGA/Mirrors/DB.pm >=================================================================== >--- lib/MGA/Mirrors/DB.pm (révision 1593) >+++ lib/MGA/Mirrors/DB.pm (copie de travail) >@@ -286,6 +286,7 @@ > my ($self, $furi) = @_; > my ($fh, $filename) = tempfile(); > close($fh); >+ $furi =~ s|//|/|; > my $cmd = > $furi->scheme =~ /^http|ftp$/ ? "wget -q --no-check-certificate -nv -t 1 -T 4 -O $filename " . $furi->as_string : > $furi->scheme eq 'rsync' ? "rsync --timeout 4 -q " . $furi->as_string . " $filename" : '';
Index: lib/MGA/Mirrors/DB.pm =================================================================== --- lib/MGA/Mirrors/DB.pm (révision 1593) +++ lib/MGA/Mirrors/DB.pm (copie de travail) @@ -286,6 +286,7 @@ my ($self, $furi) = @_; my ($fh, $filename) = tempfile(); close($fh); + $furi =~ s|//|/|; my $cmd = $furi->scheme =~ /^http|ftp$/ ? "wget -q --no-check-certificate -nv -t 1 -T 4 -O $filename " . $furi->as_string : $furi->scheme eq 'rsync' ? "rsync --timeout 4 -q " . $furi->as_string . " $filename" : '';
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1469
: 495