summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Yufei <[email protected]>2022-03-29 00:41:53 +0800
committerChen Yufei <[email protected]>2022-03-29 00:41:53 +0800
commit69a9d7c9d887d5f7bd0deff7329910d9951261c8 (patch)
treee940d40f3b4c37e313311eff076c4fdfd06aaa7a
parent550662aa5b8e4d55eb8fbc84b319a13154e439d0 (diff)
Fix package path match pattern.
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index c2d4a951d..31610278e 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -99,7 +99,7 @@ end
-- Match to path like (string insides brackets is matched):
-- /home/user/.xmake/packages[/f/foo/9adc96bd69124211aad7dd58a36f02ce]/v1.0
-local _PACKAGE_BUILDHASH_VERSION_PATTERN = "[\\/]%w[\\/][^\\/]+[\\/][^\\/]+[\\/]" .. string.rep('%x', 32)
+local _PACKAGE_BUILDHASH_VERSION_PATTERN = "[\\/]%w[\\/][^\\/]+[\\/]" .. string.rep('%x', 32)
function _fix_path_for_file(file, search_pattern)
-- Replace path string before package pattern with local package install