代码拉取完成,页面将自动刷新
同步操作将从 anolis/leapp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。