[Yum] redirecting stdin causes traceback

Garrick Staples garrick at usc.edu
Wed Jan 28 00:31:43 UTC 2004

Simple problem, yum gives a traceback if it can't read from stdin:

# yum install gsl </dev/null
[install: gsl 1.4-1.x86_64]
Is this ok [y/N]: Traceback (most recent call last):
  File "/usr/bin/yum", line 30, in ?
  File "/usr/share/yum/yummain.py", line 321, in main
    if clientStuff.userconfirm():
  File "/usr/share/yum/clientStuff.py", line 695, in userconfirm
    choice = raw_input('Is this ok [y/N]: ')
EOFError: EOF when reading a line

Of course, -y avoids the error.

Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20040127/099faa0d/attachment-0001.pgp 

More information about the Yum mailing list