diff options
| author | ShifftC <[email protected]> | 2025-09-23 15:38:03 +0200 |
|---|---|---|
| committer | ShifftC <[email protected]> | 2025-09-30 15:06:50 +0200 |
| commit | fc1bf95c3c39b06571e3f4d686093850890f3934 (patch) | |
| tree | 7a60e1d7ba4569b85f3e4fd4cc795d39f0365f8a | |
| parent | c5a738cfb37fab1c2aed211f1abe26ef0444923f (diff) | |
fix version file lookup with nil base
| -rw-r--r-- | xmake/core/package/package.lua | 2 |
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 |
