[yum-cvs] yum output.py,1.77,1.78
Jeremy Katz
katzj at linux.duke.edu
Tue Jun 26 22:31:19 UTC 2007
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv5753
Modified Files:
output.py
Log Message:
if we get a traceback reading the input, just take it as a no (rh#245736)
Index: output.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/output.py,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- output.py 13 Jun 2007 17:56:50 -0000 1.77
+++ output.py 26 Jun 2007 22:31:17 -0000 1.78
@@ -111,8 +111,11 @@
def userconfirm(self):
"""gets a yes or no from the user, defaults to No"""
- while True:
- choice = raw_input('Is this ok [y/N]: ')
+ while True:
+ try:
+ choice = raw_input('Is this ok [y/N]: ')
+ except:
+ choice = []
choice = choice.lower()
if len(choice) == 0 or choice[0] in ['y', 'n']:
break
More information about the Yum-cvs-commits
mailing list