Filter out historical archived tool and sdk versions.

This commit is contained in:
Jukka Jylänki
2014-04-24 13:17:02 +03:00
parent 13ea503a7f
commit 27d01d3078
2 changed files with 83 additions and 39 deletions

5
emsdk
View File

@@ -971,11 +971,16 @@ def main():
if len(sdks) > 0:
print 'The following Emscripten SDK versions are available:'
for sdk in sdks:
if sdk.is_old and not show_old:
continue
installed = '\tINSTALLED' if sdk.is_installed() else ''
active = '*' if sdk.is_active() else ' '
print ' ' + active + ' {0: <25}'.format(str(sdk)) + installed
print ''
print 'The items marked with * are activated for the current user.'
if not show_old:
print ''
print "To access the historical archived versions, type 'emsdk list --old'"
return 0
elif cmd == 'active_path':