From f0430379425665be41a24c31fe45cab7f4c3b7ec Mon Sep 17 00:00:00 2001 From: licihua Date: Sun, 25 Apr 2021 15:03:55 +0800 Subject: [PATCH] support issue_report by rpm --- advisors/issue_report.py | 0 command/issue_report | 25 +++++++++++++++++++++++++ openEuler-Advisor.spec | 4 ++++ 3 files changed, 29 insertions(+) mode change 100644 => 100755 advisors/issue_report.py create mode 100755 command/issue_report diff --git a/advisors/issue_report.py b/advisors/issue_report.py old mode 100644 new mode 100755 diff --git a/command/issue_report b/command/issue_report new file mode 100755 index 00000000..fe290974 --- /dev/null +++ b/command/issue_report @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +#****************************************************************************** +# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. +# 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. +# +# ******************************************************************************/ +""" +This is an automatic script for create issue report for openEuler +""" +from advisors.issue_report import main + + +if __name__ == '__main__': + try: + main() + except Exception as error: + print("WARNING: Command execution error") + print(error.message) diff --git a/openEuler-Advisor.spec b/openEuler-Advisor.spec index fb5a08e9..67012b1b 100644 --- a/openEuler-Advisor.spec +++ b/openEuler-Advisor.spec @@ -45,8 +45,12 @@ py.test-%{python3_version} -vv tests || : %attr(0755,root,root) %{_bindir}/tc_reminder %attr(0755,root,root) %{_bindir}/which_archived %attr(0755,root,root) %{_bindir}/prow_review_tool +%attr(0755,root,root) %{_bindir}/issue_report %changelog +* Mon Apr 24 2021 licihua - 1.0-5 +- issue_report: support issue_report + * Fri Jan 22 2021 licihua - 1.0-4 - check_abi: add miss require "libabigail" -- Gitee