feat(updates): apply_updates takes an optional log callback (NetOrk/netork#1112)

UpdateMixin.apply_updates declares a keyword-only log, as
harden_ssh_server does: it receives each line of the package manager's
output as the host prints it. A driver that cannot stream does not call
it and returns the output at the end, as before; the declaration stays
compatible with every driver that implements it without the keyword.
This commit is contained in:
christianmanivong committed 2026-11-29 20:18:31 +01:00
1 parent e2970831f8
commit 059d97f6de
3 files changed
+47 -1

No files matched your search

+7
View File
@@ -7,6 +7,13 @@ recorded here; their history is the git log.
## [Unreleased]
### Added
- `UpdateMixin.apply_updates(packages, *, log=None)`: an optional keyword-only `log` that
receives each line of the package manager's output as the host prints it
(NetOrk/netork#1112), as `harden_ssh_server(..., log=...)` does. A driver that cannot
stream does not call it and returns the output at the end, as before; `output` holds the
whole output either way. Drivers without it keep conforming.
## [4.53.0] - 2026-11-28
### Added