Skip to content

Commit

Permalink
fixup! fixup! Add an action to support legacy PHP debian and ubuntu r…
Browse files Browse the repository at this point in the history
…epositories
  • Loading branch information
Mikhail Sandakov committed Aug 29, 2024
1 parent ccb56d5 commit 4bc50f6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pleskdistup/actions/distupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 4bc50f6

Please sign in to comment.