qvm-template: Update docs for --updatevm

This commit is contained in:
WillyPillow 2020-09-04 01:59:28 +08:00
parent 757bb33329
commit 5a1e1b7fdd
No known key found for this signature in database
GPG Key ID: 3839E194B1415A9C
2 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,8 @@ Options
.. option:: --updatevm UPDATEVM .. option:: --updatevm UPDATEVM
Specify VM to download updates from. (default: sys-firewall) Specify VM to download updates from. (Set to empty string to specify the
current VM.) (default: sys-firewall)
.. option:: --enablerepo REPOID .. option:: --enablerepo REPOID

View File

@ -76,7 +76,8 @@ def parser_gen() -> argparse.ArgumentParser:
default='/usr/share/qubes/repo-templates/keys', default='/usr/share/qubes/repo-templates/keys',
help='Specify directory containing RPM public keys.') help='Specify directory containing RPM public keys.')
parser_main.add_argument('--updatevm', default='sys-firewall', parser_main.add_argument('--updatevm', default='sys-firewall',
help='Specify VM to download updates from.') help=('Specify VM to download updates from.'
' (Set to empty string to specify the current VM.)'))
parser_main.add_argument('--enablerepo', action='append', default=[], parser_main.add_argument('--enablerepo', action='append', default=[],
metavar='REPOID', metavar='REPOID',
help=('Enable additional repositories by an id or a glob.' help=('Enable additional repositories by an id or a glob.'
@ -340,7 +341,7 @@ def qrexec_popen(
``args.updatevm``. ``args.updatevm``.
Note that this falls back to invoking ``/etc/qubes-rpc/*`` directly if Note that this falls back to invoking ``/etc/qubes-rpc/*`` directly if
``args.updatevm`` is None. ``args.updatevm`` is empty string.
:param args: Arguments received by the application. ``args.updatevm`` is :param args: Arguments received by the application. ``args.updatevm`` is
used used