diff options
| author | ruki <[email protected]> | 2024-05-09 00:33:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-05-09 00:33:55 +0800 |
| commit | 44a29125ba6264c1c4228c20bb3e4ba503741085 (patch) | |
| tree | f741653168c5a6cfcd505032ee28556577f0cc76 | |
| parent | a450b51f4403ef5af00a2128b19c04ee9672d7e0 (diff) | |
improve package file name
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index c7d3438a5..fc3045aa2 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -148,6 +148,9 @@ function _download(package, url, sourcedir, opt) -- get package file local packagefile = url_filename(url) + if opt.download_only then + packagefile = package:name() .. "-" .. package:version_str() .. archive.extension(packagefile) + end -- get sourcehash from the given url -- |
