summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
Diffstat (limited to 'repo')
-rwxr-xr-xrepo14
1 files changed, 7 insertions, 7 deletions
diff --git a/repo b/repo
index 7942851b..5f328a47 100755
--- a/repo
+++ b/repo
@@ -28,7 +28,7 @@ if __name__ == '__main__':
28del magic 28del 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
31VERSION = (1, 17) 31VERSION = (1, 18)
32 32
33# increment this if the MAINTAINER_KEYS block is modified 33# increment this if the MAINTAINER_KEYS block is modified
34KEYRING_VERSION = (1,0) 34KEYRING_VERSION = (1,0)
@@ -80,7 +80,7 @@ TACbBS+Up3RpfYVfd63c1cDdlru13pQAn3NQy/SN858MkxN+zym86UBgOad2
80GIT = 'git' # our git command 80GIT = 'git' # our git command
81MIN_GIT_VERSION = (1, 5, 4) # minimum supported git version 81MIN_GIT_VERSION = (1, 5, 4) # minimum supported git version
82repodir = '.repo' # name of repo's private directory 82repodir = '.repo' # name of repo's private directory
83S_repo = 'repo' # special repo reposiory 83S_repo = 'repo' # special repo repository
84S_manifests = 'manifests' # special manifest repository 84S_manifests = 'manifests' # special manifest repository
85REPO_MAIN = S_repo + '/main.py' # main script 85REPO_MAIN = S_repo + '/main.py' # main script
86 86
@@ -130,7 +130,7 @@ group.add_option('-g', '--groups',
130 metavar='GROUP') 130 metavar='GROUP')
131group.add_option('-p', '--platform', 131group.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
249def _NeedSetupGnuPG(): 249def 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
267def _SetupGnuPG(quiet): 267def 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)