diff options
| author | ruki <[email protected]> | 2020-06-21 22:12:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-21 22:12:53 +0800 |
| commit | d0a6d1f920c08c3846d871abf2505d25d9b3dc1e (patch) | |
| tree | 541582b24811c94763677877e582fc84136f9b31 | |
| parent | 575af836f69fc82662882256c3c136f23a5e28d8 (diff) | |
improve the download tips
| -rw-r--r-- | xmake/actions/require/impl/action/download.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/require/impl/action/download.lua b/xmake/actions/require/impl/action/download.lua index 92a7c68d0..82bd1aaab 100644 --- a/xmake/actions/require/impl/action/download.lua +++ b/xmake/actions/require/impl/action/download.lua @@ -91,7 +91,7 @@ function _download(package, url, sourcedir, url_alias, url_excludes) os.tryrm(packagefile) -- download or copy package file - local localfile = path.join(config.buildir(), path.filename(url)) + local localfile = path.join(config.buildir(), path.filename(packagefile)) if os.isfile(url) then os.cp(url, packagefile) elseif os.isfile(localfile) then @@ -211,7 +211,7 @@ function main(package) cprint("${yellow} => ${clear}clone %s %s .. ${color.failure}${text.failure}", url, package:version_str()) else cprint("${yellow} => ${clear}download %s .. ${color.failure}${text.failure}", url) - wprint("we can also download ${bright}%s${clear} to ${bright}$(buildir)/%s${clear} manually", url, path.filename(url)) + wprint("we can also download ${bright}%s${clear} to ${bright}$(buildir)/%s${clear} manually and try it again!", url, package:name() .. "-" .. package:version_str() .. archive.extension(url)) end -- failed? break it |
