From 4bc50f6dfd6ed8a0b877c8b958f2e7b55ffb0174 Mon Sep 17 00:00:00 2001 From: Mikhail Sandakov Date: Thu, 29 Aug 2024 14:12:32 +0300 Subject: [PATCH] fixup! fixup! Add an action to support legacy PHP debian and ubuntu repositories --- pleskdistup/actions/distupgrade.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pleskdistup/actions/distupgrade.py b/pleskdistup/actions/distupgrade.py index 3e5d876..919ea4d 100644 --- a/pleskdistup/actions/distupgrade.py +++ b/pleskdistup/actions/distupgrade.py @@ -7,8 +7,6 @@ from pleskdistup.common import action, dist, dpkg, files, log, packages, plesk, util -PathType = typing.Union[os.PathLike, str] - class InstallUbuntuUpdateManager(action.ActiveAction): def __init__(self): @@ -71,16 +69,16 @@ def estimate_revert_time(self) -> int: class UpdateLegacyPHPRepositories(action.ActiveAction): - legacy_php_versions_inf3_urls: typing.List[PathType] + legacy_php_versions_inf3_urls: typing.List[str] from_os: dist.Distro to_os: dist.Distro - sources_list_d_path: PathType + sources_list_d_path: str def __init__( self, from_os: dist.Distro, to_os: dist.Distro, - sources_list_d_path: PathType = "/etc/apt/sources.list.d/", + sources_list_d_path: str = "/etc/apt/sources.list.d/", ): self.name = "update legacy PHP repositories" self.legacy_php_versions_inf3_urls = [