From: cournape Date: Thu, 19 Nov 2009 04:59:23 +0000 (+0000) Subject: BUG: fix get_installed_vcs such as most recent versions are the first ones. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34a74294a57b4f5e5b076c43c7e46bafb9f2c455;p=scons.git 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 --- 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)