diff options
| author | ruki <[email protected]> | 2020-11-01 10:21:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-01 10:21:49 +0800 |
| commit | b98867b498830320ff183bc4dff426599fee1219 (patch) | |
| tree | 8066d9a81750844c4b3f76b1b5208902e01bcbe3 /xmake/core/package/package.lua | |
| parent | e2e1045005affdac1c9bae2e66feeaed280022f9 (diff) | |
improve cross toolchain
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 459b1e573..e6f9738a2 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -582,14 +582,9 @@ end -- get versions function _instance:versions() - - -- make versions if self._VERSIONS == nil then - - -- get versions local versions = {} for version, _ in pairs(table.wrap(self:get("versions"))) do - -- remove the url alias prefix if exists local pos = version:find(':', 1, true) if pos then @@ -597,8 +592,6 @@ function _instance:versions() end table.insert(versions, version) end - - -- remove repeat self._VERSIONS = table.unique(versions) end return self._VERSIONS |
