diff options
author | David Cournapeau <cournape@gmail.com> | 2009-11-19 04:59:23 (GMT) |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-11-19 04:59:23 (GMT) |
commit | b0396109698a6bfb498e722e5aaeba523af6b49f (patch) | |
tree | b306d9a557a4a3982096cb65e5d22ec3f9068ddc | |
parent | 5374a1d8006dea2c5a9521f3f4a705eaf50312e4 (diff) | |
download | SCons-b0396109698a6bfb498e722e5aaeba523af6b49f.zip SCons-b0396109698a6bfb498e722e5aaeba523af6b49f.tar.gz SCons-b0396109698a6bfb498e722e5aaeba523af6b49f.tar.bz2 |
BUG: fix get_installed_vcs such as most recent versions are the first ones.
-rw-r--r-- | src/engine/SCons/Tool/MSCommon/vc2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc2.py b/src/engine/SCons/Tool/MSCommon/vc2.py index 3323daf..2d246b2 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) |