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 e82691534..af523d2dc 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -399,7 +399,9 @@ function _instance:parents(packagename)
results = table.unique(results)
self._PARENTS_PLAIN = results
end
- return results
+ if #results > 0 then
+ return results
+ end
end
end
end