summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2018-08-28 23:44:33 +0800
committerruki <[email protected]>2018-08-28 16:27:21 +0800
commitbf54580b06b259017f4a925aff5a58823f04f845 (patch)
treeb6992472977c76c825f34b818d665897fac606b6 /xmake/core
parentb8d96694e9fae19c96a9579ccea4333522cc7f7f (diff)
improve to select version for package manager
Diffstat (limited to 'xmake/core')
-rw-r--r--xmake/core/sandbox/modules/import/core/base/semver.lua8
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