Closed greg0ire closed 10 years ago
Simple workaround while waiting for a proper fix : edit /usr/lib/python2.7/site-packages/fedup/textoutput.py
and on line 51, simply write return 80
.
Hrm. That's not supposed to happen; if the terminal is dumb, term.size.cols should just be 0:
def getsize(fd=ttyfd):
'''Return the size of the tty attached to the given fd (default: stdin)'''
try:
buf = fcntl.ioctl(fd, termios.TIOCGWINSZ, struct.pack('8x'))
(rows, cols, _, _) = struct.unpack('hhhh', buf)
size = winsize(rows, cols)
except IOError:
size = winsize(0, 0)
return size
size = getsize()
Does it work if you change /usr/lib/python2.7/site-packages/fedup/terminal.py
to add this line:
def getsize(fd=ttyfd):
'''Return the size of the tty attached to the given fd (default: stdin)'''
size = winsize(0, 0) # <--- add this line
Also: why is your terminal dumb? How is it set up? Can I reproduce this?
I'll be able to try that in ~ 3 hours. My terminal has nothing special that I remember of, it's the original gnome-terminal you get when you install fedora 19 32bits edition. I'll get you the precise version number this evening.
Strange. Works totally fine here. What version of fedup and/or yum are on your system?
So... it's on a small compaq laptop. gnome-terminal version is 3.8.4, fedup version seems to be 0.8.0 (this file exists : /usr/lib/python2.7/site-packages/fedup-0.8.0-py2.7.egg-info
)
yum version:
yum --version ~
3.4.3
Installés : rpm-4.11.1-3.fc19.i686 à 2013-09-22 19:06
Compilé : Fedora Project à 2013-09-09 13:10
Commité : Matilainen <pmatilai@redhat.com> à 2013-09-09
Installés : yum-3.4.3-128.fc19.noarch à 2014-01-06 21:10
Compilé : Fedora Project à 2013-12-20 19:59
Commité : James Antill <james at fedoraproject.org> à 2013-12-19
aaaaand... I can't reproduce the bug today. Oh, I hate it when it happens. Sorry for bothering you.
Using gnome-terminal on Fedora 19, I was trying to update to Fedora 20, and got this message :