diff --git a/build/build.sh b/build/build.sh index 897b26f2a096d316c6f6572b03b406ad80a03c04..734ec0cd863dcbbca930df130f35341f661b1a6e 100644 --- a/build/build.sh +++ b/build/build.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== set -ex diff --git a/build/constants.sh b/build/constants.sh index 830255317d023e4f4517d67f9b4c1e1e90feadb3..04e7b828825083f99db3841f4d538b8d80bee89a 100644 --- a/build/constants.sh +++ b/build/constants.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== set -e diff --git a/build/daily_build.sh b/build/daily_build.sh index e65135a1d856b9eb5793188f672c0c4fa71d00eb..3d0035a9eb3db86527ac938c3d4e631d0a821d39 100644 --- a/build/daily_build.sh +++ b/build/daily_build.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== cd /root/build_workspace/ diff --git a/build/oedp.spec b/build/oedp.spec index 07a0131fd05f2059de459eeea2d59b621d8a593b..cd3f2dbb9d60a5b27ea2baca265ff716e9abb7c5 100644 --- a/build/oedp.spec +++ b/build/oedp.spec @@ -1,9 +1,9 @@ %define _python_bytecompile_errors_terminate_build 0 Name: oedp Version: 1.0.0 -Release: release_number +Release: 1 Summary: openEuler deploy tool -License: NA +License: Mulan PSL v2 Source0: %{name}-%{version}.tar.gz Requires: python3, ansible diff --git a/oedp.py b/oedp.py index e4857c9adc90c91ce48baabc51344e328c0d072d..43c9fbdecc0c265ca409b5360266290a10f91c02 100644 --- a/oedp.py +++ b/oedp.py @@ -1,8 +1,15 @@ #!/usr/bin/env python3 -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import sys diff --git a/src/commands/check/check_cmd.py b/src/commands/check/check_cmd.py index 50fc9dc16b100464838e0545934f9d80a4752814..db480d28e3f3c5ba08ed6b402f606b787d9e409c 100644 --- a/src/commands/check/check_cmd.py +++ b/src/commands/check/check_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from src.utils.log.logger_generator import LoggerGenerator diff --git a/src/commands/info/info_cmd.py b/src/commands/info/info_cmd.py index c885641ffe7f6e9d658b419b75b16de628aef0c0..0b4b4d1c58a4aff6a2f7853ce286a303bcc3af6e 100644 --- a/src/commands/info/info_cmd.py +++ b/src/commands/info/info_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from tabulate import tabulate diff --git a/src/commands/init/init_cmd.py b/src/commands/init/init_cmd.py index cae76c4bf5ef3885872eb39ed738b15932e1c4ef..0c3cb73eefad4210238e204cb1e34a5b10d73865 100644 --- a/src/commands/init/init_cmd.py +++ b/src/commands/init/init_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/commands/list/list_cmd.py b/src/commands/list/list_cmd.py index 818cefa3d8b1eaef3d6e24bb538351970bde3cd2..5442faa3f858f12804dd1dc31f6a7b73e82daae6 100644 --- a/src/commands/list/list_cmd.py +++ b/src/commands/list/list_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/commands/run/run_action.py b/src/commands/run/run_action.py index 6b66a42e3bb46d243dc14dd319afb11393568e2f..ef29c9dfa694d1991239113e96b2f86e0c7dbf96 100644 --- a/src/commands/run/run_action.py +++ b/src/commands/run/run_action.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/commands/run/run_cmd.py b/src/commands/run/run_cmd.py index 66e850d529daef61f1b0e4dcb94a35b2fd5447da..640cb9a2dccda4121d2362713e889f82a78040e9 100644 --- a/src/commands/run/run_cmd.py +++ b/src/commands/run/run_cmd.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from src.commands.run.run_action import RunAction diff --git a/src/constants/const.py b/src/constants/const.py index d4d4da15a97b5d3cc3aa64ee0c445724dbe510da..e1f17467aab9af0413062ec64b59441e3111513e 100644 --- a/src/constants/const.py +++ b/src/constants/const.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== # 命令行 diff --git a/src/constants/paths.py b/src/constants/paths.py index 083bc3830c3a581d7178847e1021298367b712eb..1fc68522b483060d501fe2a45eb78a8ada64343c 100644 --- a/src/constants/paths.py +++ b/src/constants/paths.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== """ diff --git a/src/exceptions/base_custom_exception.py b/src/exceptions/base_custom_exception.py index b7f031c9b196030d3046f332b3410722626428fd..2666dc90e5791d97b6176af97331036572e77e1f 100644 --- a/src/exceptions/base_custom_exception.py +++ b/src/exceptions/base_custom_exception.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== class BaseCustomException(Exception): diff --git a/src/exceptions/config_exception.py b/src/exceptions/config_exception.py index ac41a35bdaa5e7a71a141a83b44ec57c04b95814..ddca3122ebc3ec3a33316b9b3f56f4375122849c 100644 --- a/src/exceptions/config_exception.py +++ b/src/exceptions/config_exception.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== from src.exceptions.base_custom_exception import BaseCustomException diff --git a/src/parsers/oedp_parser.py b/src/parsers/oedp_parser.py index 51a79edb5bd959689b0a3f61565692ff319a37ed..76112ce915f30c3a4483869ff22c3e2ba16f8dca 100644 --- a/src/parsers/oedp_parser.py +++ b/src/parsers/oedp_parser.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import argparse diff --git a/src/utils/command/command_executor.py b/src/utils/command/command_executor.py index e32cc3bd4beef85a692e16188834d48a66542aa8..16379abf3bc8a56484b9f4d5286d0cde1eecbbb7 100644 --- a/src/utils/command/command_executor.py +++ b/src/utils/command/command_executor.py @@ -1,8 +1,14 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/utils/config_reader.py b/src/utils/config_reader.py index 4916e90f4cbd23ef52f8bfcda8b44728ac0f37b2..5438884b6b5dd48c83b970cebad9551bd932821a 100644 --- a/src/utils/config_reader.py +++ b/src/utils/config_reader.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import json diff --git a/src/utils/log/log_config_obj.py b/src/utils/log/log_config_obj.py index 78dc3f8b76a1d30e3d17c7a0f4ba683a631a363a..9cda5fc6c0d6d58e8d132e5303fc222fc3e79c4c 100644 --- a/src/utils/log/log_config_obj.py +++ b/src/utils/log/log_config_obj.py @@ -1,3 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 +# ====================================================================================================================== + import logging import os.path from configparser import ConfigParser, NoSectionError, NoOptionError diff --git a/src/utils/log/logger_generator.py b/src/utils/log/logger_generator.py index 604aa46a1d771ba1c98a4b035f9915d86b877139..8499d221b97ec8648be61a9dbf362a0704af7741 100644 --- a/src/utils/log/logger_generator.py +++ b/src/utils/log/logger_generator.py @@ -1,8 +1,16 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== + import logging import logging.handlers import os.path diff --git a/src/utils/main_reader.py b/src/utils/main_reader.py index 3dc3542e1a77caa9b9f18dbaea060f98c660313a..8d5eda80e7aa5748459befa4f4722326ae45c8e2 100644 --- a/src/utils/main_reader.py +++ b/src/utils/main_reader.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== import os diff --git a/src/utils/tools.py b/src/utils/tools.py index f932f2f6edda51121df080cec512a893d1e3b48a..b2ea56fb800aa2586ec114664cdccd38c4e1c054 100644 --- a/src/utils/tools.py +++ b/src/utils/tools.py @@ -1,7 +1,14 @@ -# Copyright (c) 2024 Huawei Technologies Co., Ltd. All Rights Reserved. -# 本文件是oeDeploy软件(“本软件”)的一部分,受您与华为签订的保密协议约束。 -# 除非另有协议约定或经华为书面授权,您不得将本软件披露、公开或分发给任何第三方,包括您的关联公司。 -# 本软件按“原样”提供,不附带任何明示或默示的担保。华为不对您因使用本软件而引发的任何直接或间接损失承担责任。 +# -*- coding: utf-8 -*- +# Copyright (c) 2024 Huawei Technologies Co., Ltd. +# A-Tune is licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR +# PURPOSE. +# See the Mulan PSL v2 for more details. +# Create: 2024-12-23 # ====================================================================================================================== """