From a18cc16b3331e5c91e0a062be0681714540a3c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E5=87=AF?= Date: Thu, 5 Dec 2024 16:21:52 +0800 Subject: [PATCH] fix: add more log --- scripts/manage.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/scripts/manage.py b/scripts/manage.py index ebb8788..64647e6 100644 --- a/scripts/manage.py +++ b/scripts/manage.py @@ -284,8 +284,19 @@ texts = { 'docker-up-iptables-failed': { 'en': 'Iptables policy error, try to restart docker', 'zh': 'iptables 规则错误,尝试重启 docker' + }, + 'install-channel': { + 'en': 'Installing', + 'zh': '安装通道' + }, + 'preview-release': { + 'en': 'Preview', + 'zh': '预览版' + }, + 'lts-release': { + 'en': 'LTS', + 'zh': 'LTS 版' } - } @@ -940,6 +951,7 @@ def init_global_config(): if '--lts' in sys.argv: global LTS LTS = True + log.info(text('install-channel')+": "+text('lts-release')) if '--image-clean' in sys.argv: global IMAGE_CLEAN @@ -951,13 +963,14 @@ def init_global_config(): lang = 'en' def main(): - init_global_config() banner() log.info(text('hello1')) log.info(text('hello2')) print() + init_global_config() + if sys.version_info.major == 2 or (sys.version_info.major == 3 and sys.version_info.minor <= 5): log.error(text('python-version-too-low')) return