diff options
| author | ruki <[email protected]> | 2025-08-02 22:41:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-02 22:41:14 +0800 |
| commit | 944e912fd2c9c0e2806649f95ed77de522a89309 (patch) | |
| tree | 4944ef2b35ad46fcce4905606f604f1f8c64d0ca | |
| parent | b2628769d3206449e9301cb86bd87df9c789ccd5 (diff) | |
improve cached filename #6654
| -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 |
