Skip to content

Commit

Permalink
Merge pull request #66 from plesk/update-ubuntu20to22
Browse files Browse the repository at this point in the history
Resintall python36-lxml only for centos2alma since it is specific problem for the conversion
  • Loading branch information
SandakovMM committed Aug 21, 2024
2 parents 8fdabc4 + 4e7f01d commit 415ec23
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 415ec23

Please sign in to comment.