diff options
Diffstat (limited to 'subcmds/init.py')
| -rw-r--r-- | subcmds/init.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/subcmds/init.py b/subcmds/init.py index dbb6ddda..b8e3de5a 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -179,7 +179,7 @@ to update the working directory files. | |||
| 179 | r.Save() | 179 | r.Save() | 
| 180 | 180 | ||
| 181 | groups = re.split(r'[,\s]+', opt.groups) | 181 | groups = re.split(r'[,\s]+', opt.groups) | 
| 182 | all_platforms = ['linux', 'darwin'] | 182 | all_platforms = ['linux', 'darwin', 'windows'] | 
| 183 | platformize = lambda x: 'platform-' + x | 183 | platformize = lambda x: 'platform-' + x | 
| 184 | if opt.platform == 'auto': | 184 | if opt.platform == 'auto': | 
| 185 | if (not opt.mirror and | 185 | if (not opt.mirror and | 
| @@ -188,7 +188,7 @@ to update the working directory files. | |||
| 188 | elif opt.platform == 'all': | 188 | elif opt.platform == 'all': | 
| 189 | groups.extend(map(platformize, all_platforms)) | 189 | groups.extend(map(platformize, all_platforms)) | 
| 190 | elif opt.platform in all_platforms: | 190 | elif opt.platform in all_platforms: | 
| 191 | groups.extend(platformize(opt.platform)) | 191 | groups.append(platformize(opt.platform)) | 
| 192 | elif opt.platform != 'none': | 192 | elif opt.platform != 'none': | 
| 193 | print('fatal: invalid platform flag', file=sys.stderr) | 193 | print('fatal: invalid platform flag', file=sys.stderr) | 
| 194 | sys.exit(1) | 194 | sys.exit(1) | 
