summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 2c42a4c94..7a1d8e24b 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1458,7 +1458,7 @@ function _instance:_versions_list()
if not path.is_absolute(versionfile) then
local subpath = versionfile
versionfile = path.join(self:scriptdir(), subpath)
- if not os.isfile(versionfile) then
+ if not os.isfile(versionfile) and self:base() then
versionfile = path.join(self:base():scriptdir(), subpath)
end
end