Skip to content

Commit f9b0d80

Browse files
author
Ernest Chen
committed
【完善】软件包描述
1 parent 5d71ee4 commit f9b0d80

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cmds/cmd_package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ def package_wizard():
889889
default_description = 'Please add description of ' + name + ' in English.'
890890
#description = user_input('menuconfig option name,default:\n',default_description)
891891
description = default_description
892+
description_zh = "请添加软件包 " + name +" 的中文描述。"
892893

893894
#second step
894895
ver = user_input('\033[5;33;40m\n2.Please input this package version, default :\033[0m', '1.0.0')
@@ -962,7 +963,7 @@ def package_wizard():
962963
f.close()
963964

964965
s = Template(Package_json_file)
965-
package = s.substitute(name=name, pkgsclass=pkgsclass,authorname=authorname,authoremail=authoremail, description=description, version=ver, keyword=keyword,license=license, repository=repository)
966+
package = s.substitute(name=name, pkgsclass=pkgsclass,authorname=authorname,authoremail=authoremail, description=description, description_zh=description_zh,version=ver, keyword=keyword,license=license, repository=repository)
966967
f = file(os.path.join(pkg_path, 'package.json'), 'wb')
967968
f.write(package)
968969
f.close()

package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
Package_json_file = '''{
8484
"name": "${name}",
8585
"description": "${description}",
86-
"description_zh": "请添加软件包 ${name} 的中文描述",
86+
"description_zh": "${description_zh}",
8787
"keywords": [
8888
"${keyword}"
8989
],

0 commit comments

Comments
 (0)