diff options
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index 93448ed2d..7d68b967b 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -149,7 +149,7 @@ function _download(package, url, sourcedir, opt) -- get package file local packagefile = url_filename(url) - if opt.download_only then + if not os.isfile(packagefile) then -- we need to be compatible with the old file names packagefile = package:name() .. "-" .. package:version_str() .. archive.extension(packagefile) end |
