mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
cmds.distro.CmdInstall: Support macro expansion
Support macro expansion similar to CmdCopy paths in CmdInstall as well. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c20091d7ac
commit
beab4cb03c
1 changed files with 4 additions and 1 deletions
|
|
@ -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 <names>')
|
||||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue