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
Opened by Nikos Kouremenos (zeppelin) - Tuesday, 19 April 2005, 19:21 GMT
|
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
There is no sortmirrors package in the main repos. sortmirrors.pl comes with the pacman package.
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