diff options
| author | ruki <[email protected]> | 2025-04-03 15:05:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-03 15:05:25 +0800 |
| commit | b64c409c2de0663057d1a5661c3a5cef664bbabf (patch) | |
| tree | 511a0bc07d11434f0b03e844d43e4143fecf471e | |
| parent | 935789fc065c1095802e49d9999f0a8d5308c567 (diff) | |
| parent | 46ae18eb6c2ca85be3b620ea01bd968a86273c8a (diff) | |
Merge pull request #6277 from Shiffted/get_possible_package
fix unknown package tips
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index c44a54a92..87547ab3f 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -1541,7 +1541,7 @@ function get_possible_package(packagename) local distance_min for name, info in pairs(packages_possible) do local distance = packagename:levenshtein(info.name) - if distance_min == nil or distance < distance_min and distance < 5 then + if (distance_min == nil or distance < distance_min) and distance < 5 then distance_min = distance result = info end |
