summaryrefslogtreecommitdiffstats
path: root/subcmds/selfupdate.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/selfupdate.py')
-rw-r--r--subcmds/selfupdate.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/subcmds/selfupdate.py b/subcmds/selfupdate.py
index a8a09b64..282f518e 100644
--- a/subcmds/selfupdate.py
+++ b/subcmds/selfupdate.py
@@ -1,5 +1,3 @@
1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2009 The Android Open Source Project 1# Copyright (C) 2009 The Android Open Source Project
4# 2#
5# Licensed under the Apache License, Version 2.0 (the "License"); 3# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +12,6 @@
14# See the License for the specific language governing permissions and 12# See the License for the specific language governing permissions and
15# limitations under the License. 13# limitations under the License.
16 14
17from __future__ import print_function
18from optparse import SUPPRESS_HELP 15from optparse import SUPPRESS_HELP
19import sys 16import sys
20 17
@@ -22,8 +19,9 @@ from command import Command, MirrorSafeCommand
22from subcmds.sync import _PostRepoUpgrade 19from subcmds.sync import _PostRepoUpgrade
23from subcmds.sync import _PostRepoFetch 20from subcmds.sync import _PostRepoFetch
24 21
22
25class Selfupdate(Command, MirrorSafeCommand): 23class Selfupdate(Command, MirrorSafeCommand):
26 common = False 24 COMMON = False
27 helpSummary = "Update repo to the latest version" 25 helpSummary = "Update repo to the latest version"
28 helpUsage = """ 26 helpUsage = """
29%prog 27%prog
@@ -39,7 +37,7 @@ need to be performed by an end-user.
39 def _Options(self, p): 37 def _Options(self, p):
40 g = p.add_option_group('repo Version options') 38 g = p.add_option_group('repo Version options')
41 g.add_option('--no-repo-verify', 39 g.add_option('--no-repo-verify',
42 dest='no_repo_verify', action='store_true', 40 dest='repo_verify', default=True, action='store_false',
43 help='do not verify repo source code') 41 help='do not verify repo source code')
44 g.add_option('--repo-upgraded', 42 g.add_option('--repo-upgraded',
45 dest='repo_upgraded', action='store_true', 43 dest='repo_upgraded', action='store_true',
@@ -59,5 +57,5 @@ need to be performed by an end-user.
59 57
60 rp.bare_git.gc('--auto') 58 rp.bare_git.gc('--auto')
61 _PostRepoFetch(rp, 59 _PostRepoFetch(rp,
62 no_repo_verify = opt.no_repo_verify, 60 repo_verify=opt.repo_verify,
63 verbose = True) 61 verbose=True)