1 Star 0 Fork 10

崔立昊/leapp

forked from anolis/leapp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0025-add-check-openssl11-libs.patch 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
mgb01105731 提交于 2022-02-08 17:16 . Add openssl11-libs checker
From e04cfbf28b7c7c47d30c830b5ca9c8aabda2189d Mon Sep 17 00:00:00 2001
From: mgb01105731 <mgb01105731@alibaba-inc.com>
Date: Tue, 8 Feb 2022 16:34:19 +0800
Subject: add check openssl11-libs
---
.../actors/checkopenssl11libs/actor.py | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 repos/system_upgrade/el7toel8/actors/checkopenssl11libs/actor.py
diff --git a/repos/system_upgrade/el7toel8/actors/checkopenssl11libs/actor.py b/repos/system_upgrade/el7toel8/actors/checkopenssl11libs/actor.py
new file mode 100644
index 0000000..f5ca177
--- /dev/null
+++ b/repos/system_upgrade/el7toel8/actors/checkopenssl11libs/actor.py
@@ -0,0 +1,30 @@
+from leapp.actors import Actor
+from leapp.libraries.common.rpms import has_package
+from leapp.models import InstalledRPM
+from leapp.reporting import Report, create_report
+from leapp import reporting
+from leapp.reporting import create_report
+from leapp.tags import ChecksPhaseTag, IPUWorkflowTag
+
+
+class Checkopenssl11libs(Actor):
+ """
+ Check if openssl11-libs is installed. If yes, stop upgrade
+ """
+
+ name = 'check-openssl11-libs'
+ consumes = (InstalledRPM,)
+ produces = (Report,)
+ tags = (ChecksPhaseTag, IPUWorkflowTag)
+
+ def process(self):
+ if has_package(InstalledRPM, 'openssl11-libs'):
+ create_report([
+ reporting.Title('Openssl11-libs is installed, openssl11-libs cannot be processed during upgrade.'),
+ reporting.Summary(
+ 'Package openssl11-libs is conflicated with openssl-libs from Anolis OS 8 while upgrading.\n'
+ 'You should first backup your application files and data when your app requires openssl11-libs. Secondly, remove openssl11-libs from your OS and finally exec upgrade.'),
+ reporting.Severity(reporting.Severity.HIGH),
+ reporting.Remediation(hint='Please uninstall openssl11-libs, and then preupgrade again.'),
+ reporting.Flags([reporting.Flags.INHIBITOR])
+ ])
--
2.19.1.6.gb485710b
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cui-lihao/leapp.git
git@gitee.com:cui-lihao/leapp.git
cui-lihao
leapp
leapp
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385