|
From: Alexander H. <ale...@gm...> - 2011-09-27 11:41:26
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/27/11 5:57 AM, Max Horn wrote: > > Am 27.09.2011 um 01:06 schrieb Alexander Hansen: > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> On 9/26/11 5:04 PM, Alexander Hansen wrote: >>> I asked SF.net about how to replace our ailing mirror list with >>> something that still contains geographic information and >>> here's the response. It looks like we'd need to do some >>> additional coding to implement it. >> >> I've also been playing around with Using >> "http://downloads.sourceforge.net/project/<project path>". This >> works with wget, but not curl: >> > [...] > > >> curl --connect-timeout 30 -f -L -A 'fink/0.31.2' -O >> http://downloads.sourceforge.net/project/octave/Octave\ Forge\ >> Packages/R2009-06-07/multicore-0.2.15.tar.gz % Total % >> Received % Xferd Average Speed Time Time Time Current >> Dload Upload Total Spent Left Speed 0 0 0 0 >> 0 0 0 0 --:--:-- --:--:-- - --:--:-- 0 curl: >> (22) The requested URL returned error: 400 ### execution of curl >> failed, exit code 22 Downloading the file >> "multicore-0.2.15.tar.gz" failed. > > This error is caused by the spaces in the filename. Wget > automatically converts these to %20, but curl doesn't. > > Once I replaced the spaces manually by %20, curl worked just fine. > A simple sed or perl statement can of course automate this. Note > that wget will accept the URL with %20, too. So maybe we should URL > encode URLs before passing them to the downloader tool? > > Bye, Max Thanks! I was able to use Source: http://downloads.sourceforge.net/project/octave/Octave%%20Forge%%20Packages... in a .info file and it works for wget, curl, axel, axelautomirror, lftpget, and aria2, so we don't even need to do anything additional for my particular corner case. :-) My thought here is that it looks like we'd have to do significant extra coding to do explicit mirror selection from sourceforge now, so instead we might want to start having packages use Source: http://downloads.sourceforge.net/project/<path/to/tarball/> rather than Source: mirror:sourceforge:<path/to/tarball> and allow sf.net's automatic mirror selector to do its thing. - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6BtlcACgkQB8UpO3rKjQ/6JwCbBAp7pnqN9ZIN5xQNTj8RJsBW ssIAn3oC8q6POD6TEwB2CVr0uryhNanf =HeZR -----END PGP SIGNATURE----- |