launcher: warn when verification is disabled

Make it clear(er) to the user that this option is dangerous.

Bug: https://crbug.com/gerrit/11045
Change-Id: I5580996c26653a7c823b69008de3626abf1b0068
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/257333
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
This commit is contained in:
Mike Frysinger 2020-02-29 02:55:19 -05:00 committed by David Pursehouse
parent 21b7fbe14d
commit 910dfe8497

3
repo
View File

@ -525,6 +525,9 @@ def _Init(args, gitc_init=False):
try: try:
if not opt.repo_verify: if not opt.repo_verify:
do_verify = False do_verify = False
print('repo: warning: verification of repo code has been disabled;\n'
'repo will not be able to verify the integrity of itself.\n',
file=sys.stderr)
else: else:
if NeedSetupGnuPG(): if NeedSetupGnuPG():
do_verify = SetupGnuPG(opt.quiet) do_verify = SetupGnuPG(opt.quiet)