lib.distro.distro.install(): Default only_update to False
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m59s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m1s
CI / Packaging test (pull_request) Successful in 0s

c5ad946d6 (lib.distros.Distro.install_*(): Add install_deps) removed the
Distro.install() only_update parameter's default = False. The commit also
enforced the parameter's effect on Debian-based distros, but that doesn't
make it a reason for the default's removal. jw-nettools relies on it, so
add it back.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-11-02 10:15:04 +01:00
commit fe0294e4aa
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -470,7 +470,7 @@ class Distro(abc.ABC):
async def install(
self,
names: Collection[str],
only_update: bool,
only_update: bool = False,
install_deps: bool = True,
) -> None:
assert not (only_update and install_deps)