You are not logged in.

#1 2006-12-04 14:28:06

isofluran
Member
From: Berlin, Germany
Registered: 2005-10-19
Posts: 25

"sortmirrors" deletes all entries

Strange behavior of the "sortmirrors" script: Running it results in empty files (only comments remain).
All entries of the listed mirrors are deleted.
netselect package is installed
So, is there someone who can explain what happens here? Solutions?
Btw it is not possible to rebuild the files in pacman.d by running "pacman -S pacman".

Regards
Sebastian

Offline

#2 2006-12-04 16:15:28

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: "sortmirrors" deletes all entries

Hum, sounds strange, however - i suggest you to just enable your favorite mirrors in /etc/pacman.conf . You can find mirrors here: http://wiki.archlinux.org/index.php/Mirror


http://timtux.net/ - my personal blog about almost everything

Offline

#3 2006-12-04 19:39:43

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: "sortmirrors" deletes all entries

You're the 1000th person to mention this, and everyone agrees that sortmirrors should either be fixed or removed, but nothing gets done.

(Did you delete the files before running pacman -S pacman? It shouldn't overwrite them, but presumably it will create them if they don't exist...)


I am a gated community.

Offline

#4 2006-12-04 19:53:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: "sortmirrors" deletes all entries

Reinstalling pacman will recreate the files with .pacnew extensions, so you can just rename them.

Offline

#5 2006-12-04 21:03:49

isofluran
Member
From: Berlin, Germany
Registered: 2005-10-19
Posts: 25

Re: "sortmirrors" deletes all entries

No, running pacman -S pacman does not create any .pacnew files in /etc (in my case?). Neither a pacman.conf.pacnew nor any .pacnew files in pacman.d can be found. I copied them from the unpacked pkg.tar.gz file ...

It was just an idea to use sortmirrors because sometimes pacman -Syu takes to much time.
Editing the pacman.conf is easy for me, but i think the solution of the script may be very convenient to find fast mirrors.

So is there someone who can fix the script? (or delete it, because the script at the present state is more than useless, for newbies it might be a bit harmful)

So long
Sebastian

Offline

#6 2006-12-04 21:05:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: "sortmirrors" deletes all entries

If you provide me with a fixed version, I will fix it.

Offline

#7 2006-12-04 22:29:40

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: "sortmirrors" deletes all entries

phrakture wrote:

If you provide me with a fixed version, I will fix it.

Maybe the script could be replaced by this one or a modified version: http://bbs.archlinux.org/viewtopic.php?t=19278

Offline

Board footer

Powered by FluxBB