diff options
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 | ||