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:
1 parent
e2970831f8
commit
059d97f6de
3 files changed
+47
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user