Skip to content

Commit

Permalink
revert the usage in distupgrade.py - another way is intr
Browse files Browse the repository at this point in the history
  • Loading branch information
Umit Kablan committed Oct 3, 2024
1 parent 267c81a commit b20b944
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pleskdistup/actions/distupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,11 @@ def __init__(


class DoDistupgrade(action.ActiveAction):
retry_intervals_on_temp_fail: typing.List[int]

def __init__(self, retry_intervals_on_temp_fail: typing.List[int] = [30, 60, 90, 120]):
def __init__(self):
self.name = "do dist-upgrade"
self.retry_intervals_on_temp_fail = retry_intervals_on_temp_fail

def _prepare_action(self) -> action.ActionResult:
dpkg.do_distupgrade(self.retry_intervals_on_temp_fail)
dpkg.do_distupgrade()
return action.ActionResult()

def _post_action(self) -> action.ActionResult:
Expand Down

0 comments on commit b20b944

Please sign in to comment.