An origin/main merge brought back main's live implementations where this branch had retirement shims: psutil_android (download + extract), the dashboard_procs concurrent-shim scan, and update_cmd_windows reaching the holder scan through hermes_cli.main's retired alias. An already-running pre-PM updater must hand off to the fresh child, never resume its ladder. Post-update dashboard cleanup is isolated like its siblings (#112604), and the holder-retirement probes assert the hand-off through the fresh-child seam instead of a bare SystemExit(0).
25 lines
866 B
Python
25 lines
866 B
Python
"""Shims to stop the old updater doing work until relaunch, not Android support."""
|
|
|
|
from pathlib import Path
|
|
from typing import NoReturn
|
|
|
|
from hermes_cli._old_updater import stop_for_relaunch
|
|
|
|
# Frozen data for old imports, not a download performed by this module.
|
|
PSUTIL_URL = (
|
|
"https://files.pythonhosted.org/packages/aa/c6/"
|
|
"d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/"
|
|
"psutil-7.2.2.tar.gz"
|
|
)
|
|
|
|
|
|
def prepare_patched_psutil_sdist(archive: Path, destination: Path) -> NoReturn:
|
|
# Shim to stop the old updater doing work until relaunch. Extract nothing.
|
|
stop_for_relaunch()
|
|
|
|
|
|
# Shim to stop the old updater doing work until relaunch. Historical callers
|
|
# download PSUTIL_URL BEFORE calling prepare_patched_psutil_sdist, so waiting
|
|
# for that call is too late. Stop the import without offering a fake URL.
|
|
stop_for_relaunch()
|