From e3f6cfa48dcc66c6f6a7994c442bc8c2be7cf445 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 13 Mar 2026 22:50:37 +0800 Subject: fix vcpkg utils --- xmake/modules/package/manager/vcpkg/utils.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/modules/package/manager/vcpkg/utils.lua b/xmake/modules/package/manager/vcpkg/utils.lua index 9eabe7cee..b7dd7237b 100644 --- a/xmake/modules/package/manager/vcpkg/utils.lua +++ b/xmake/modules/package/manager/vcpkg/utils.lua @@ -31,7 +31,8 @@ function is_installed(vcpkg, name, triplet) if listinfo then local exact_prefix = name .. ":" .. triplet for _, line in ipairs(listinfo:split("\n", {plain = true})) do - if line:startswith(exact_prefix) then + local first = line:split("%s")[1] + if first == exact_prefix then return true end end -- cgit v1.3.1