cmds.pkg: Add --exact to jw-pkg packages install
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m17s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m16s
CI / Packaging test (pull_request) Successful in 0s

Add an additional option -x, which inhibits dependency resolution during
installation of packages.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.4.0
This commit is contained in:
Jan Lindemann 2026-10-27 14:56:40 +01:00
commit afd3a8c40b
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -26,6 +26,14 @@ class CmdInstall(Cmd): # export
action = 'store_true',
help = "Only update the listed packages, don't install them",
)
parser.add_argument(
'-x',
'--exact',
default = False,
action = 'store_true',
help = "Install local files directly, without resolving "
"dependencies",
)
parser.add_argument(
'-F',
'--fixed-strings',
@ -38,4 +46,8 @@ class CmdInstall(Cmd): # export
names = (
args.names if args.fixed_strings else self.distro.expand_macros(args.names)
)
return await self.distro.install(names, only_update = args.only_update)
return await self.distro.install(
names,
only_update = args.only_update,
install_deps = not (args.only_update or args.exact),
)