FS#20431 - [pacman-mirrorlist] Split pacman mirrorlist to two files

Attached to Project: Arch Linux
Opened by Tomas Mudrunka (harvie) - Tuesday, 10 August 2010, 18:55 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 10 August 2010, 21:03 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version 3.4.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary and Info: I think that there should be two mirrorlist files. One with mirrors specified by admin (mirrorlist.custom) and one original from distribution (which is currently moved to mirrorlist.pacnew). Maybe that one mirror can be uncommented in this file as fallback. Using those two files will be nicer than using mirrorlist and mirrorlist.pacnew.


pacman.conf snippet:


#[testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist.custom
#Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist.custom
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist.custom
Include = /etc/pacman.d/mirrorlist

#[community-testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist.custom
#Include = /etc/pacman.d/mirrorlist

[community]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist.custom
#Include = /etc/pacman.d/mirrorlist
This task depends upon

Closed by  Dan McGee (toofishes)
Tuesday, 10 August 2010, 21:03 GMT
Reason for closing:  Won't implement
Additional comments about closing:  We aren't in the business of changing what works and this is easy to do as a per-system policy.
Comment by Tomas Mudrunka (harvie) - Tuesday, 10 August 2010, 19:05 GMT
Then we can do something like:
cat mirrorlist | sed -e 's/^#//g' | rankmirrors - | head -n3 > mirrorlist.custom
Comment by Dan McGee (toofishes) - Tuesday, 10 August 2010, 19:05 GMT
  • Field changed: Attached to Project (Pacman → Arch Linux)
Wrong project, switching...
Comment by Dan McGee (toofishes) - Tuesday, 10 August 2010, 19:12 GMT
Um...or you could just do (which is still silly because you don't need all 125 mirrors):

cat mirrorlist.pacnew | sed -e 's/^#//g' | rankmirrors - | head -n3 > mirrorlist

This whole idea seems silly to me. Either add it to NoUpgrade, or implement this exact same thing yourself, on your local system, without needing a change to the package at all.
Comment by Tomas Mudrunka (harvie) - Tuesday, 10 August 2010, 19:59 GMT
Well, but i just think that having mirrorlist.custom preferred to mirrorlist can be good habit, so i suggest to add following line to all repos in pacman.conf:

Include = /etc/pacman.d/mirrorlist.custom
Comment by Allan McRae (Allan) - Tuesday, 10 August 2010, 20:43 GMT
I agree this can be closed.

Loading...