diff options
| author | ruki <[email protected]> | 2019-03-11 22:48:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-11 10:52:35 +0800 |
| commit | e6b992ae11a7a2fce3239e4e35b19240eff3ccf7 (patch) | |
| tree | e06a2986bb3875d4b8dd0fda487728733a6339d9 /xmake/actions/require/info.lua | |
| parent | 8faab0d7801e89d8de4cb8cce990c943be41815f (diff) | |
rename some interfaces
Diffstat (limited to 'xmake/actions/require/info.lua')
| -rw-r--r-- | xmake/actions/require/info.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/require/info.lua b/xmake/actions/require/info.lua index e75036df5..9e0ea691b 100644 --- a/xmake/actions/require/info.lua +++ b/xmake/actions/require/info.lua @@ -116,9 +116,9 @@ function main(package_names) cprint(" -> ${magenta}urls${clear}:") for _, url in ipairs(urls) do print(" -> %s", filter.handle(url, instance)) - local sha256 = instance:sha256(instance:url_alias(url)) - if sha256 then - cprint(" -> ${yellow}%s${clear}", sha256) + local sourcehash = instance:sourcehash(instance:url_alias(url)) + if sourcehash then + cprint(" -> ${yellow}%s${clear}", sourcehash) end end end |
