Am Donnerstag, den 01.02.2007, 00:34 -0500 schrieb seth vidal:
> On Wed, 2007-01-24 at 16:00 +0100, Thomas Springer wrote:
> > Got that when hitting Ctrl-D('oh) instead of 'N'.
[...]
> >   File "/usr/share/yum-cli/output.py", line 117, in userconfirm
> >     choice = raw_input('Is this ok [y/N]: ')
> > EOFError
> > 
> 
> 
> > Should this be fixed?: y
> cute. :)
> 
> 
> we can catch EOFError in the exception and have it exit more gracefully
> but do you have suggestions on what more-correct behavior should be?
> 
> -sv
> 

Maybe exiting yum is not all it's cracked up to be.
You could just catch the exception and prompt the user for input again.
What do you think?


Thomas

_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to