diff options
| author | ruki <[email protected]> | 2021-02-25 00:46:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-25 00:46:40 +0800 |
| commit | 755d6cb62335f9b3a3cecf0830138886e9510f8a (patch) | |
| tree | e473f2edb561578f23bed9fd8c8ed4c6a98243e9 /xmake/core/package/package.lua | |
| parent | 1b934fa63f73cf2bad6f605f353b3021e601fb82 (diff) | |
fix depend order for package
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index ebb8c795c..d5dc5a3b2 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -838,9 +838,9 @@ function _instance:buildhash() end end if not sourcehashs:empty() then - for _, sourcehash in sourcehashs:keys() do - str = str .. "_" .. sourcehash - end + local hashs = sourcehashs:to_array() + table.sort(hashs) + str = str .. "_" .. table.concat(hashs, "_") end end return hash.uuid4(str):gsub('-', ''):lower() |
