summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-13 22:49:51 +0800
committerruki <[email protected]>2026-03-13 22:49:51 +0800
commitb6592501bdef4db1ae117b6c6a20a8a230e33907 (patch)
treec08cd6e3652633be87cd72bbc012cee48f40026b
parent273ed3b3183e43520cc8a0b062c51ade88574ce8 (diff)
fix vcpkg utils
-rw-r--r--xmake/modules/package/manager/vcpkg/utils.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/modules/package/manager/vcpkg/utils.lua b/xmake/modules/package/manager/vcpkg/utils.lua
index ca1cabcac..9eabe7cee 100644
--- a/xmake/modules/package/manager/vcpkg/utils.lua
+++ b/xmake/modules/package/manager/vcpkg/utils.lua
@@ -18,16 +18,13 @@
-- @file utils.lua
--
--- define module
-local utils = utils or {}
-
-- check if a package (with optional features) is installed for the given triplet
-- e.g. is_installed(vcpkg, "curl", "x64-windows-static-md")
-- is_installed(vcpkg, "curl[mbedtls]", "x64-windows-static-md")
--
-- @see https://github.com/xmake-io/xmake/issues/7388
--
-function utils.is_installed(vcpkg, name, triplet)
+function is_installed(vcpkg, name, triplet)
local listinfo = try { function ()
return os.iorunv(vcpkg, {"list", name .. ":" .. triplet, "--x-full-desc"})
end}
@@ -41,6 +38,3 @@ function utils.is_installed(vcpkg, name, triplet)
end
return false
end
-
--- return module
-return utils