FS#8042 - rankmirrors doesn't work with the new global mirrorlist
Attached to Project:
Pacman
Opened by Andrew Fyfe (space-m0nkey) - Monday, 17 September 2007, 16:04 GMT
Last edited by Dan McGee (toofishes) - Friday, 28 September 2007, 05:40 GMT
Opened by Andrew Fyfe (space-m0nkey) - Monday, 17 September 2007, 16:04 GMT
Last edited by Dan McGee (toofishes) - Friday, 28 September 2007, 05:40 GMT
|
Details
Summary and Info:
When running rankmirrors on /etc/pacman.d/mirrorlist all the mirrors are marked unreachable because the urls contain $repo instead of a valid repository name. Solution: Have rankmirrors replace $repo with core when testing urls. Steps to Reproduce: rankmirrors -v /etc/pacman.d/mirrorlist |
This task depends upon
Closed by Dan McGee (toofishes)
Friday, 28 September 2007, 05:40 GMT
Reason for closing: Fixed
Additional comments about closing: fixed and tested in git, scheduled for 3.1
Friday, 28 September 2007, 05:40 GMT
Reason for closing: Fixed
Additional comments about closing: fixed and tested in git, scheduled for 3.1
if we want to get fancy with the mini lexing, we could use string.Template and setup some sort of:
junk = { 'repo': 'core' }
url = string.Template(url).safe_substitute(junk)
This future proofs the current implementation in the case that we add other $foo variables, or change to ${} syntax
ref: http://docs.python.org/lib/node40.html
I don't know python, but it apparently works :)