Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 421869

Summary: www-misc/reflector-2014.11 version bump and deprecated distutils.eclass
Product: Gentoo Linux Reporter: Michael Weber (RETIRED) <xmw>
Component: EclassesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Pending removal: 2016-09-20
Package list:
Runtime testing required: ---

Description Michael Weber (RETIRED) gentoo-dev 2012-06-19 00:50:59 UTC
the current one is broken on

# reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
error: failed to retrieve mirror data: time data '2012-06-18T21:20:01Z' does not match format '%Y-%m-%d %H:%M:%S'#

The 3to2.patch fails, 2.[67] doesn't work without

x reflector 1 # python2.7 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist 
Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
  File "/usr/lib64/python2.7/site-packages/Reflector.py", line 3, in <module>
    import urllib.request
ImportError: No module named request

x reflector 1 # python2.6 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
  File "/usr/lib64/python2.6/site-packages/Reflector.py", line 3, in <module>
    import urllib.request
ImportError: No module named request

python 3.* is kinda broken, at least with default python 3.2


x reflector 1 # python3.1 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python3.1/threading.py", line 533, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.1/threading.py", line 486, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.1/site-packages/Reflector.py", line 223, in worker
    q_out.put((url, rate, dt))
UnboundLocalError: local variable 'dt' referenced before assignment

x reflector 137 # python3.2 /usr/bin/reflector -l 8 --sort rate --save /etc/pacman.d/mirrorlist
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib64/python3.2/threading.py", line 740, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.2/threading.py", line 693, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.2/site-packages/Reflector.py", line 223, in worker
    q_out.put((url, rate, dt))
UnboundLocalError: local variable 'dt' referenced before assignment
Comment 1 Pacho Ramos gentoo-dev 2016-08-17 14:14:15 UTC
CCing treecleaners
Comment 2 Pacho Ramos gentoo-dev 2016-10-01 07:00:05 UTC
removed