From 4e7f01d06c97c8d15d173dad58f1201d6734f17e Mon Sep 17 00:00:00 2001 From: Mikhail Sandakov Date: Wed, 21 Aug 2024 09:50:23 +0300 Subject: [PATCH] Resintall python36-lxml only for centos2alma since it is specific problem for the conversion --- pleskdistup/actions/plesk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pleskdistup/actions/plesk.py b/pleskdistup/actions/plesk.py index fed8d45..b014318 100644 --- a/pleskdistup/actions/plesk.py +++ b/pleskdistup/actions/plesk.py @@ -5,7 +5,7 @@ import subprocess import typing -from pleskdistup.common import action, packages, plesk, log, util, version +from pleskdistup.common import action, dist, packages, plesk, log, util, version def _change_plesk_components( @@ -192,7 +192,7 @@ def _prepare_action(self) -> action.ActionResult: # new Plesk packages have been published, such as hotfixes, so the impact of the problem is low. # However, because we don't do a rollback for every conversion failure, this scenario is possible # and could be confusing for users. Therefore, we've decided to handle it proactively. - if not packages.is_package_installed("python36-lxml"): + if dist.get_distro() == dist.CentOs("7") and not packages.is_package_installed("python36-lxml"): packages.install_packages(["python36-lxml"]) util.logged_check_call(["/usr/sbin/plesk", "installer", "update"] + self.update_cmd_args)