diff options
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -28,7 +28,7 @@ if __name__ == '__main__': | |||
28 | del magic | 28 | del magic |
29 | 29 | ||
30 | # increment this whenever we make important changes to this script | 30 | # increment this whenever we make important changes to this script |
31 | VERSION = (1, 17) | 31 | VERSION = (1, 18) |
32 | 32 | ||
33 | # increment this if the MAINTAINER_KEYS block is modified | 33 | # increment this if the MAINTAINER_KEYS block is modified |
34 | KEYRING_VERSION = (1,0) | 34 | KEYRING_VERSION = (1,0) |
@@ -80,7 +80,7 @@ TACbBS+Up3RpfYVfd63c1cDdlru13pQAn3NQy/SN858MkxN+zym86UBgOad2 | |||
80 | GIT = 'git' # our git command | 80 | GIT = 'git' # our git command |
81 | MIN_GIT_VERSION = (1, 5, 4) # minimum supported git version | 81 | MIN_GIT_VERSION = (1, 5, 4) # minimum supported git version |
82 | repodir = '.repo' # name of repo's private directory | 82 | repodir = '.repo' # name of repo's private directory |
83 | S_repo = 'repo' # special repo reposiory | 83 | S_repo = 'repo' # special repo repository |
84 | S_manifests = 'manifests' # special manifest repository | 84 | S_manifests = 'manifests' # special manifest repository |
85 | REPO_MAIN = S_repo + '/main.py' # main script | 85 | REPO_MAIN = S_repo + '/main.py' # main script |
86 | 86 | ||
@@ -130,7 +130,7 @@ group.add_option('-g', '--groups', | |||
130 | metavar='GROUP') | 130 | metavar='GROUP') |
131 | group.add_option('-p', '--platform', | 131 | group.add_option('-p', '--platform', |
132 | dest='platform', default="auto", | 132 | dest='platform', default="auto", |
133 | help='restrict manifest projects to ones with a specified' | 133 | help='restrict manifest projects to ones with a specified ' |
134 | 'platform group [auto|all|none|linux|darwin|...]', | 134 | 'platform group [auto|all|none|linux|darwin|...]', |
135 | metavar='PLATFORM') | 135 | metavar='PLATFORM') |
136 | 136 | ||
@@ -196,8 +196,8 @@ def _Init(args): | |||
196 | 196 | ||
197 | _CheckGitVersion() | 197 | _CheckGitVersion() |
198 | try: | 198 | try: |
199 | if _NeedSetupGnuPG(): | 199 | if NeedSetupGnuPG(): |
200 | can_verify = _SetupGnuPG(opt.quiet) | 200 | can_verify = SetupGnuPG(opt.quiet) |
201 | else: | 201 | else: |
202 | can_verify = True | 202 | can_verify = True |
203 | 203 | ||
@@ -246,7 +246,7 @@ def _CheckGitVersion(): | |||
246 | raise CloneFailure() | 246 | raise CloneFailure() |
247 | 247 | ||
248 | 248 | ||
249 | def _NeedSetupGnuPG(): | 249 | def NeedSetupGnuPG(): |
250 | if not os.path.isdir(home_dot_repo): | 250 | if not os.path.isdir(home_dot_repo): |
251 | return True | 251 | return True |
252 | 252 | ||
@@ -264,7 +264,7 @@ def _NeedSetupGnuPG(): | |||
264 | return False | 264 | return False |
265 | 265 | ||
266 | 266 | ||
267 | def _SetupGnuPG(quiet): | 267 | def SetupGnuPG(quiet): |
268 | if not os.path.isdir(home_dot_repo): | 268 | if not os.path.isdir(home_dot_repo): |
269 | try: | 269 | try: |
270 | os.mkdir(home_dot_repo) | 270 | os.mkdir(home_dot_repo) |