summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-19 00:52:55 +0800
committerruki <[email protected]>2023-09-19 00:52:55 +0800
commit9767bf21f93219a5e6970524c1e4859b28277fc7 (patch)
tree60c3249c83cf3990d1c901bca9d1b23bd68eb0a2 /xmake/core/package/package.lua
parenta4a9b3ac3f599249c8ed72bc773fed55d85c2753 (diff)
fix package rules directory
Diffstat (limited to 'xmake/core/package/package.lua')
-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 e86d87ce6..fa409aace 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -814,7 +814,7 @@ function _instance:rulesdir()
if not os.isdir(rulesdir) and self:base() then
rulesdir = self:base():rulesdir()
end
- if not os.isdir(rulesdir) then
+ if rulesdir == nil or not os.isdir(rulesdir) then
rulesdir = false
end
self._RULESDIR = rulesdir