From 68c589acae88d929a7fef980413d234849061adf Mon Sep 17 00:00:00 2001 From: czoido Date: Wed, 23 Oct 2024 15:55:02 +0200 Subject: [PATCH] fix update detection --- conan/internal/api/detect/detect_vs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conan/internal/api/detect/detect_vs.py b/conan/internal/api/detect/detect_vs.py index 6139870398e..2f6c1c9d3de 100644 --- a/conan/internal/api/detect/detect_vs.py +++ b/conan/internal/api/detect/detect_vs.py @@ -14,8 +14,11 @@ def vs_detect_update(version): version = {"194": "17", "193": "17", "192": "16", "191": "15"}.get(str(version)) full_version = _vs_installation_path(version)[1] components = full_version.split(".") + # 17.10 --> 1940 + # 17.11 --> 1941 + # etc... if len(components) > 1: - return components[1] + return str(int(components[1]) % 10) def _vs_installation_path(version):