Skip to content

Commit 72f98a1

Browse files
committed
[package_wizard] 添加 sensor 分类
1 parent 9b20347 commit 72f98a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmds/cmd_package.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -898,15 +898,15 @@ def package_wizard():
898898

899899
#third step
900900
packageclass = ('iot', 'language', 'misc', 'multimedia',
901-
'peripherals', 'security', 'system', 'tools')
902-
print ('\033[5;33;40m\n3.Please choose a package category from 1 to 8 : \033[0m')
903-
print ("\033[1;32;40m[1:iot]|[2:language]|[3:misc]|[4:multimedia]|[5:peripherals]|[6:security]|[7:system]|[8:tools]\033[0m")
901+
'peripherals', 'security', 'system', 'tools', 'peripherals/sensors')
902+
print ('\033[5;33;40m\n3.Please choose a package category from 1 to 9 : \033[0m')
903+
print ("\033[1;32;40m[1:iot]|[2:language]|[3:misc]|[4:multimedia]|[5:peripherals]|[6:security]|[7:system]|[8:tools]|[9:sensors]\033[0m")
904904
classnu = raw_input()
905-
while classnu == '' or classnu.isdigit()== False or int(classnu) < 1 or int(classnu) >8:
905+
while classnu == '' or classnu.isdigit()== False or int(classnu) < 1 or int(classnu) >9:
906906
if classnu == '' :
907907
print ('\033[1;31;40mError: You must choose a package category. Try again.\033[0m')
908908
else :
909-
print ('\033[1;31;40mError: You must input an integer number from 1 to 8. Try again.\033[0m')
909+
print ('\033[1;31;40mError: You must input an integer number from 1 to 9. Try again.\033[0m')
910910
classnu = raw_input()
911911

912912
pkgsclass = packageclass[int(classnu) - 1]

0 commit comments

Comments
 (0)