mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 11:25:23 +02:00
jw.pkg.cmds.distro.CmdInstall: Support --only-update
Passing --only-update should keep "jw-pkg.py distro install" from installing packages that are not already installed on the the system. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
79d40af558
commit
6af16d2dca
5 changed files with 12 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ class CmdInstall(Cmd): # export
|
|||
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||
super().add_arguments(parser)
|
||||
parser.add_argument("packages", 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')
|
||||
|
||||
async def _run(self, args: Namespace) -> None:
|
||||
return await self._backend.run(args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue