BUG: fix get_installed_vcs such as most recent versions are the first ones.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:59:23 +0000 (04:59 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 19 Nov 2009 04:59:23 +0000 (04:59 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4445 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/MSCommon/vc2.py

index 3323daf3a74c9f49a037059c121ea6953d7b6971..2d246b2995d27b6a0eb5de559fdd9ae1fdd28158 100644 (file)
@@ -137,7 +137,8 @@ def get_installed_vcs():
         if find_vc_pdir(ver):
             debug('found VC %s' % ver)
             installed_versions.append(ver)
-    return installed_versions
+    # Sort version to get the most recent first
+    return sorted(installed_versions)[::-1]
 
 def script_env(script, args=None):
     stdout = common.get_output(script, args)