Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resintall python36-lxml only for centos2alma since it is specific problem for the conversion #66

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pleskdistup/actions/plesk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down
Loading