summaryrefslogtreecommitdiff
path: root/xmake/actions/require/info.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-11 22:48:45 +0800
committerruki <[email protected]>2019-03-11 10:52:35 +0800
commite6b992ae11a7a2fce3239e4e35b19240eff3ccf7 (patch)
treee06a2986bb3875d4b8dd0fda487728733a6339d9 /xmake/actions/require/info.lua
parent8faab0d7801e89d8de4cb8cce990c943be41815f (diff)
rename some interfaces
Diffstat (limited to 'xmake/actions/require/info.lua')
-rw-r--r--xmake/actions/require/info.lua6
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