diff options
| author | ruki <[email protected]> | 2018-08-28 23:44:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-08-28 16:27:21 +0800 |
| commit | bf54580b06b259017f4a925aff5a58823f04f845 (patch) | |
| tree | b6992472977c76c825f34b818d665897fac606b6 /xmake/core | |
| parent | b8d96694e9fae19c96a9579ccea4333522cc7f7f (diff) | |
improve to select version for package manager
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/sandbox/modules/import/core/base/semver.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/core/sandbox/modules/import/core/base/semver.lua b/xmake/core/sandbox/modules/import/core/base/semver.lua index 0a12b94a8..3136323f9 100644 --- a/xmake/core/sandbox/modules/import/core/base/semver.lua +++ b/xmake/core/sandbox/modules/import/core/base/semver.lua @@ -73,14 +73,6 @@ end -- function sandbox_core_base_semver.select(range, versions, tags, branches) - -- only master? - versions = table.wrap(versions) - tags = table.wrap(tags) - branches = table.wrap(branches) - if #versions == 0 and #tags == 0 and #branches == 0 and range == "master" then - return "master", "versions" - end - -- select version local verinfo, errors = semver.select(range, table.wrap(versions), table.wrap(tags), table.wrap(branches)) if not verinfo then |
