diff options
author | Colin Cross <ccross@android.com> | 2012-04-23 13:39:48 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-04-23 13:43:41 -0700 |
commit | 5465727e538bcd77200f8b3c75f002367597fc51 (patch) | |
tree | 51f376719b489eb25b57dc3fd88da116af99a53c /subcmds/init.py | |
parent | d21720db313369f25b99b4d2f3f87c8be46513d9 (diff) | |
download | git-repo-5465727e538bcd77200f8b3c75f002367597fc51.tar.gz |
Fix syntax errors in subcmds/init.py
Fixes three errors:
Python doesn't like the line wrap after 'and'.
platform.system is a function, needs to be platform.system().
Typo all_platfroms instead of all_platforms.
Change-Id: Ia875e521bc01ae2eb321ec62d839173c00f86c2d
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 2e3215b2..b359024d 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -154,7 +154,7 @@ to update the working directory files. | |||
154 | not m.config.GetString('repo.mirror') == 'true'): | 154 | not m.config.GetString('repo.mirror') == 'true'): |
155 | groups.append(platformize(platform.system().lower())) | 155 | groups.append(platformize(platform.system().lower())) |
156 | elif opt.platform == 'all': | 156 | elif opt.platform == 'all': |
157 | groups.extend(map(platformize, all_platfroms)) | 157 | groups.extend(map(platformize, all_platforms)) |
158 | elif opt.platform in all_platforms: | 158 | elif opt.platform in all_platforms: |
159 | groups.extend(platformize(opt.platform)) | 159 | groups.extend(platformize(opt.platform)) |
160 | elif opt.platform != 'none': | 160 | elif opt.platform != 'none': |
@@ -163,8 +163,7 @@ to update the working directory files. | |||
163 | 163 | ||
164 | groups = [x for x in groups if x] | 164 | groups = [x for x in groups if x] |
165 | groupstr = ','.join(groups) | 165 | groupstr = ','.join(groups) |
166 | if opt.platform == 'auto' and | 166 | if opt.platform == 'auto' and groupstr == 'default,platform-' + platform.system().lower(): |
167 | groupstr == 'default,platform-' + platform.system.lower(): | ||
168 | groupstr = None | 167 | groupstr = None |
169 | m.config.SetString('manifest.groups', groupstr) | 168 | m.config.SetString('manifest.groups', groupstr) |
170 | 169 | ||