summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 070f5338e..2ec11e527 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -204,7 +204,9 @@ function _instance:version_from(...)
-- from source?
for _, source in ipairs({...}) do
- return self:version().source == source
+ if self:version().source == source then
+ return true
+ end
end
end