diff options
| author | ruki <[email protected]> | 2021-04-18 22:22:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-18 22:22:07 +0800 |
| commit | dbd3a2970da280b42f93a79caeb65e29034ba2bd (patch) | |
| tree | 981074cc237eb45a6c6426d1ff738abeea7fc3da /xmake/modules/private/action/require/info.lua | |
| parent | a87d6552004a1fb9f89c29bb89f6918b22aedb3c (diff) | |
improve to search package file
Diffstat (limited to 'xmake/modules/private/action/require/info.lua')
| -rw-r--r-- | xmake/modules/private/action/require/info.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/info.lua b/xmake/modules/private/action/require/info.lua index ecb8ba7d6..963488104 100644 --- a/xmake/modules/private/action/require/info.lua +++ b/xmake/modules/private/action/require/info.lua @@ -154,6 +154,10 @@ function main(requires_raw) local searchnames = hashset.new() for _, url in ipairs(instance:urls()) do url = filter.handle(url, instance) + local extension = archive.extension(url) + if extension then + searchnames:insert(instance:name() .. "-" .. instance:version_str() .. extension) + end searchnames:insert(url_filename(url)) end cprint(" -> ${magenta}searchnames${clear}: %s", table.concat(searchnames:to_array(), ", ")) |
