From 34a74294a57b4f5e5b076c43c7e46bafb9f2c455 Mon Sep 17 00:00:00 2001 From: cournape Date: Thu, 19 Nov 2009 04:59:23 +0000 Subject: [PATCH] BUG: fix get_installed_vcs such as most recent versions are the first ones. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4445 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/MSCommon/vc2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/Tool/MSCommon/vc2.py b/src/engine/SCons/Tool/MSCommon/vc2.py index 3323daf3..2d246b29 100644 --- a/src/engine/SCons/Tool/MSCommon/vc2.py +++ b/src/engine/SCons/Tool/MSCommon/vc2.py @@ -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) -- 2.26.2