From beab4cb03ca74d924c3318dcfe68cda302ab32f9 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 16 Apr 2026 14:19:18 +0200 Subject: [PATCH] cmds.distro.CmdInstall: Support macro expansion Support macro expansion similar to CmdCopy paths in CmdInstall as well. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/cmds/distro/CmdInstall.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/jw/pkg/cmds/distro/CmdInstall.py b/src/python/jw/pkg/cmds/distro/CmdInstall.py index 7f3a9074..0f7441ff 100644 --- a/src/python/jw/pkg/cmds/distro/CmdInstall.py +++ b/src/python/jw/pkg/cmds/distro/CmdInstall.py @@ -14,6 +14,9 @@ class CmdInstall(Cmd): # export super().add_arguments(parser) parser.add_argument("names", nargs="*", help="Packages to be installed") parser.add_argument('--only-update', default=False, action='store_true', help='Only update the listed packages, don\'t install them') + parser.add_argument('-F', '--fixed-strings', action='store_true', + help='Don\'t expand platform info macros in ') async def _run(self, args: Namespace) -> None: - return await self.distro.install(args.names, only_update=args.only_update) + names = names if args.fixed_strings else self.app.distro_info(args.names) + return await self.distro.install(names, only_update=args.only_update)