summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpdagobert <[email protected]>2023-03-19 09:43:31 +0100
committerpdagobert <[email protected]>2023-03-26 00:17:03 +0100
commit2d5fbc71a783caade10d2c38c16a9e71d31cac13 (patch)
treecb3f0ed812e673f6da101b6c584a77d2deec47bd
parent6416ec1cecf3d05878b42bdf02588ecdd31ad12f (diff)
Fix dub find_package for windows paths and package modules
-rw-r--r--xmake/modules/package/manager/dub/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/dub/find_package.lua b/xmake/modules/package/manager/dub/find_package.lua
index 5d49d695e..372e6bbcf 100644
--- a/xmake/modules/package/manager/dub/find_package.lua
+++ b/xmake/modules/package/manager/dub/find_package.lua
@@ -49,7 +49,7 @@ function main(name, opt)
if pkglist then
local pkgdir
for _, line in ipairs(pkglist:split('\n', {plain = true})) do
- local pkginfo = line:split(':', {plain = true})
+ local pkginfo = line:split(': ', {plain = true})
if #pkginfo == 2 then
local pkgkey = pkginfo[1]:trim():split(' ', {plain = true})
local pkgpath = pkginfo[2]:trim()