FS#2616 - sortmirrors pkg [since ftp.archlinux.org is having a bad time]

Attached to Project: Arch Linux
Opened by Nikos Kouremenos (zeppelin) - Tuesday, 19 April 2005, 19:21 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

dibble has it already. go to official
and in the installation guide
also include:

pacman -S sortmirrors
sudo sortmirros
sudo pacman -Syu
This task depends upon

Closed by  Judd Vinet (judd)
Tuesday, 26 April 2005, 07:20 GMT
Reason for closing:  Implemented
Comment by Judd Vinet (judd) - Thursday, 21 April 2005, 19:38 GMT
Not sure what you're asking here, Nikos.

There is no sortmirrors package in the main repos. sortmirrors.pl comes with the pacman package.
Comment by Nikos Kouremenos (zeppelin) - Thursday, 21 April 2005, 21:09 GMT
yes sorry Judd. I alwayws bugreport at night :P

I propose this script to be added in pacman pkg too.

€ cat /sbin/sortmirrors
#!/bin/bash

base=/etc/pacman.d

for dbase in {current,extra,testing,unstable} ; do
repotest=`cat /etc/pacman.conf | grep "$dbase"`
repotest=`echo $repotest | grep "#Include"`
if [ -z $repotest ] ; then
echo "Sorting $dbase mirrors. Please wait..."
sortmirrors.pl <$base/$dbase >$base/$dbase.new
cp -f $base/$dbase.new $base/$dbase
rm $base/$dbase.new
fi
done
[nk@Freud gajim]€ pacman -Qi sortmirrors
Name : sortmirrors
Version : 0.1-1
Groups : None
Packager : dibblethewrecker <dibblethewrecker@jiwe.org>
URL :
License :
Architecture : i686
Size : 8565
Build Date : Mon Feb 28 12:50:58 2005 UTC
Install Date : Tue Apr 19 19:19:02 2005 UTC
Install Script : No
Reason: : explicitly installed
Provides : None
Depends On : bash netselect
Required By : None
Conflicts With : None
Description : A simple script that utlises netselect and sortmirrors.pl to sort you pacman mirrors

Loading...