You are not logged in.

#1 2005-12-04 13:26:50

tor
Member
From: Sweden
Registered: 2004-08-02
Posts: 80

checkmirror script

When struck by #3559 earlier this week. And to top it of was left with a halfupgraded Gnome i wrote a little python script to find "good" uptodate mirrors for pacman.

It uses viewcvs to pick up pacman's config and then uses gnomevfs to check the status of the individual db-files on the diffrent mirrors. Hence the script depends on gnome-python. Script can be found here: checkmirror

[Edit: changed path]

Offline

#2 2005-12-07 23:55:45

lunke
Member
From: Sweden
Registered: 2005-05-21
Posts: 86

Re: checkmirror script

That's really nice, also good for checking which mirror that's fastest smile

Offline

#3 2005-12-08 06:29:12

tor
Member
From: Sweden
Registered: 2004-08-02
Posts: 80

Re: checkmirror script

Thanks, its main feature is that it checks how up to date a mirror is. For checking speed i think the sortmirror script that comes with pacman is more efficient, or at least a lot faster. But then again a quick mirror is of no use if it was updated a month ago or not even carry the mirror any more.

Offline

#4 2005-12-08 22:20:57

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: checkmirror script

Wauw, it's going fast now.

Thanks alot.


Arch - It's something refreshing

Offline

#5 2005-12-22 18:19:38

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: checkmirror script

Any particular reason why the most recent change date (including ftp.archlinux.org) shows as 20 Dec?

Edit:  The most recent updates to the current and extra repositories,according to the archlinux.org page are dated 22 Dec.

Offline

#6 2005-12-23 07:34:51

tor
Member
From: Sweden
Registered: 2004-08-02
Posts: 80

Re: checkmirror script

Cotton wrote:

Any particular reason why the most recent change date (including ftp.archlinux.org) shows as 20 Dec?

Edit:  The most recent updates to the current and extra repositories,according to the archlinux.org page are dated 22 Dec.

Hmm, here the frontpage of http://www.archlinux.org/ shows:

Current     December 20 18:24
Extra     December 22 19:24
Unstable     December 13 04:12
Testing     December 22 09:42

Offline

#7 2005-12-23 10:42:15

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: checkmirror script

Yes you're right.  I hadn't realised that the script looked at Current's date only.

Thanks for clearing that up.

Offline

#8 2005-12-23 10:54:00

tor
Member
From: Sweden
Registered: 2004-08-02
Posts: 80

Re: checkmirror script

If you want to check one of the other repositories you have to say that on the commandline fx:

./checkmirror.py extra

Checkmirror can look up current, extra, community and unstable.

Offline

#9 2006-01-06 18:24:15

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 128

Re: checkmirror script

Here is a hacked version that avoids the use of the gnomevfs module.

Unfortunately the ftplib module doesn't seem to have a way to modify the connection timeout, so unreachable ftp mirrors take a long time to process.

Offline

#10 2006-05-28 15:45:01

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: checkmirror script

http://www.krill.nu/arch/checkmirror/checkmirror.py

currently responds with  "Forbidden".

Offline

#11 2006-05-28 16:47:37

tor
Member
From: Sweden
Registered: 2004-08-02
Posts: 80

Re: checkmirror script

Yeah, i know. Since i wrote that script i have changed hosting. And the new one insists on interpret that as an forbidden CGI-script and wont show it. :-(

You can reach it as: http://www.krill.nu/arch/checkmirror/checkmirror instead.

Offline

Board footer

Powered by FluxBB