You are not logged in.

#1 2010-10-05 03:43:36

gav616
Member
Registered: 2008-01-16
Posts: 182

[SOLVED] Force user intervention on mirrorlists

After every pacman update, a script (in the terminal) could be run to force the user to select good mirrors, to be placed into '/etc/pacman.d/mirrorlist' i.e."Where are you from? select location from list >"

Sorting them by 'mirror status' would also help newbies very much.

This would solve a-lot of hassle for new players on arch when first using pacman, atleast after every update there guaranteed less hassle with up-to-date ranked mirrors queries..

Last edited by gav616 (2010-10-26 00:01:50)

Offline

#2 2010-10-05 03:46:07

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,671
Website

Re: [SOLVED] Force user intervention on mirrorlists

Or we could not and expect our users to be able to simple things like that by themselves...

Offline

#3 2010-10-05 03:49:18

gav616
Member
Registered: 2008-01-16
Posts: 182

Re: [SOLVED] Force user intervention on mirrorlists

Allan wrote:

Or we could not and expect our users to be able to simple things like that by themselves...

the point was just a little automated service after a pacman update, just to keep things simple.

Offline

#4 2010-10-05 04:26:28

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,671
Website

Re: [SOLVED] Force user intervention on mirrorlists

Automation like this is not "simple" in the way Arch uses "Keep It Simple".

Offline

#5 2010-10-05 10:23:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Force user intervention on mirrorlists

If you need a reminder, you can make a script yourself.

Offline

#6 2010-10-26 00:01:26

gav616
Member
Registered: 2008-01-16
Posts: 182

Re: [SOLVED] Force user intervention on mirrorlists

#!/bin/bash
wget -N -O /etc/pacman.d/mirrorlist.tmp "http://www.archlinux.org/mirrorlist/?country=Great+Britain&use_mirror_status=on" ;
sed '/^#\S/ s|#||' -i /etc/pacman.d/mirrorlist.tmp ;
mv /etc/pacman.d/mirrorlist.tmp /etc/pacman.d/mirrorlist ;
pacman -Syy

I use this now.


btw, in bash how to you stop a script from continuing if a command fails

Offline

#7 2010-10-26 00:21:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Force user intervention on mirrorlists

gav616 wrote:

btw, in bash how to you stop a script from continuing if a command fails

command1 && command2

command2 will be executed only if command1 succeeds.

Offline

Board footer

Powered by FluxBB