Fix problems with configure mountpoint when auto install:

1. configure root mountpoint ok and and just press Enter when the focus
   on no button, errors occur.

	modified:   text/auto_install.py
This commit is contained in:
Peng Zhihui
2014-06-17 17:14:15 +08:00
parent 2f80cd90f0
commit bbf7182fbf

View File

@@ -41,11 +41,13 @@ while True :
elif list[count] == 'mountpoint':
ri_newt.MountPoint()
s = ri_newt.Screen.dict[list[count]].set_data()
if int(s) == 0:
count = count + 1
else:
count = count - 1
try:
if int(s) == 0:
count = count + 1
else:
count = count - 1
except:
pass
if count < 0 or count > len(list) - 1:
try: