You are not logged in.
Info page: http://xyne.archlinux.ca/projects/reflector/
Following the deprecation of perl-xyne-arch, I have rewritten reflector in Python 3. Some of the options have changed so read through "reflector --help" and update any scripts that rely on it.
Please test it and report any bugs. Feel free to make suggestions for changes and features too.
Given that this is a complete rewrite, I have only pushed it to my repo for now. I'll move it back to [community] in a few days if all goes well.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
That was fast !!
I was thinking it would be a while for you to get the new apps together, since you RIP threads mentioned
.......progressing very slowly....
But hey, I'll take it !
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I think I owe you a beer or two
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
I saw this update appear just an hour ago when updating. And there was much rejoicing
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Awesome! You have no idea how happy this makes me! Time to reinstate reflector to weekly crond status! Thanks, xyne!
Offline
Well that was a hilariously fast turn around
Offline
That was fast !!
I was thinking it would be a while for you to get the new apps together, since you RIP threads mentioned
Xyne wrote:.......progressing very slowly....
But hey, I'll take it !
That really refers to the larger project that I have in mind. There's just so much to do for it and it really will need several intensive coding sessions because it's not the kind of thing that I can just pick up and work on for a few hours now and then. Reflector, on the contrary, is simple and easy to bang out in one session.
It's one of those "you'll understand when you see it" things, but there's a chance that I will never get it done, which is why I've been reluctant to even mention it before... the curse of vaporware looms nigh.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Inxsible wrote:That was fast !!
I was thinking it would be a while for you to get the new apps together, since you RIP threads mentioned
Xyne wrote:.......progressing very slowly....
But hey, I'll take it !
That really refers to the larger project that I have in mind. There's just so much to do for it and it really will need several intensive coding sessions because it's not the kind of thing that I can just pick up and work on for a few hours now and then. Reflector, on the contrary, is simple and easy to bang out in one session.
It's one of those "you'll understand when you see it" things, but there's a chance that I will never get it done, which is why I've been reluctant to even mention it before... the curse of vaporware looms nigh.
And hundreds of vapor-chasing users will jump on Xyne's every post as a result
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
That is awesome news . Thanks xyne
Last edited by ilusi0n (2011-03-26 00:29:34)
Offline
This is very good news however I wish it didn't need to be python3.
Offline
If you are feeling up to giving PkgD the same attention as reflector I promise not to stand in the way.
Edit: I see you have mentioned using quickserve as a replacement for PkgD from your post history.
Also I get the following error when running reflector.
Traceback (most recent call last):
File "/usr/bin/reflector", line 3, in <module>
import Reflector
ImportError: No module named Reflector
Last edited by mrman (2011-03-26 07:21:34)
Offline
If you are feeling up to giving PkgD the same attention as reflector I promise not to stand in the way.
Edit: I see you have mentioned using quickserve as a replacement for PkgD from your post history.
Also I get the following error when running reflector.
Traceback (most recent call last): File "/usr/bin/reflector", line 3, in <module> import Reflector ImportError: No module named Reflector
$ pacman -Ql reflector
reflector /usr/
reflector /usr/bin/
reflector /usr/bin/reflector
$ cat =reflector
#!/usr/bin/env python3
import Reflector
Reflector.main()
Xyne broke my reflector PKGBUILD!! =]
EDIT: Ohhh, I forgot to say "thanks Xyne for the work!", but Xyne got so much 'thanks' that I don't think that matter... I come too late... Xyne, can you drop something more, please?
Last edited by kazuo (2011-03-26 07:33:42)
Offline
I wish I could download faster. You are the key and thanks for your great works
Specially this time, very prompt
do it good first, it will be faster than do it twice the saint
Offline
Traceback (most recent call last): File "/usr/bin/reflector", line 3, in <module> import Reflector ImportError: No module named Reflector
fixed
This is very good news however I wish it didn't need to be python3.
I've added a patch to the source archive that can convert it to Python 2. I won't be actively maintaining a Python 2 package, but I have included a section in the PKGBUILD that you can easily uncomment to create a package. How you deal with updates etc will be up to you.
Follow the pkgbuild link on the project page to get the latest PKGBUILD.
Last edited by Xyne (2011-03-26 11:34:39)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Is
reflector -l 5 -f 5 --save foo
same as
reflector -l 5 --sort rate --save foo
?
Last edited by karol (2011-03-28 11:13:08)
Offline
@karol
For now they are, but the filter order may change in the future.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Reflector is now back in [community].
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thank you for your work.
Last edited by the sad clown (2011-04-04 04:12:38)
I laugh, yet the joke is on me
Offline
awesome, just checked this and tried it and I love it, more speed is always welcome
its really nice how things can get a lot faster just by using the correct mirrors, and its easy with your tool
Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff
Offline
Hi all, does anyone know of a way to run reflector through a proxy, I've tried setting the *tp_proxy env variables but that doesn't work.
() Registered Linux user #500376
/\ www.asciiribbon.org - against html e-mail
Offline
Hi all, does anyone know of a way to run reflector through a proxy, I've tried setting the *tp_proxy env variables but that doesn't work.
Use tsock or aur/proxychains
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Aha! Easy when you know how!! Thanks man.
() Registered Linux user #500376
/\ www.asciiribbon.org - against html e-mail
Offline
Nice script, thanks Xyne.
What about putting the command used to generate the file in the generated file?
Offline
Hey Xyne, great work. In my quest to saturate my cable modem during updates, I noticed the mirror score column at https://www.archlinux.org/mirrors/status/. I thought it would be nice to be able to sort reflector results by that instead of date. After adding 4 lines to the Reflector.py, I got it working (--sort score). I'm not familiar with how to make patches or anything, but because it's such a simple change I didn't think you would really need one anyway. Any chance you could do something similar?
Offline
Stupid question: how are people using reflector? In a cron entry like:
reflector -c "United States" -a 1 -f 6 --sort rate --save /etc/pacman.d/mirrorlist
Then followed-up with a
pacman -Syyu
?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline