I'm receiving such error when calling "glsa-check --dump affected" and having python-3* selected: Traceback (most recent call last): File "/usr/bin/glsa-check", line 268, in <module> myglsa.dump() File "/usr/lib64/python3.1/site-packages/gentoolkit/glsa/__init__.py", line 628, in dump outstream.write(center("GLSA %s: \n%s" % (self.nr, self.title), width)+"\n") File "/usr/lib64/python3.1/site-packages/gentoolkit/glsa/__init__.py", line 64, in center rValue = " "*margin TypeError: can't multiply sequence by non-int of type 'float' Looks like this line (64) in /usr/lib64/python3.1/site-packages/gentoolkit/glsa/__init__.py: margin = (width-len(text))/2 rValue = " "*margin Should be changed to something like (not sure in Python syntax): margin = int((width-len(text))/2)
The fix is to change the line: margin = (width-len(text))/2 to: margin = (width-len(text))//2 Python2 did integer floor division by default and Python3 does not. I'll fix the code and it will be in the next release.
Hi. When the next release will be available?
I would consider this a much higher importance because currently glsa-check is broken for all systems that use python3 Or in other words: Gentoo's tool for doing security updates is broken in its current stable version when using a "default" python setup.
Released in gentoolkit-0.3.0.7
*** Bug 444650 has been marked as a duplicate of this bug. ***