diff options
| author | ruki <[email protected]> | 2017-09-21 00:25:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-20 20:34:49 +0800 |
| commit | 33d847860f7f963fc47286634460dc435941c1e9 (patch) | |
| tree | 260cb155397ed043d162902619f102853bbf4a4c | |
| parent | 5fc937a0504b82d0781a60614a51d2a9315f4d27 (diff) | |
fix yum script and export os.isroot
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 1 | ||||
| -rw-r--r-- | xmake/modules/package/manager/yum/install.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index 5b603843c..4bfbd284b 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -45,6 +45,7 @@ sandbox_os.argw = os.argw sandbox_os.mtime = os.mtime sandbox_os.sleep = os.sleep sandbox_os.raise = os.raise +sandbox_os.isroot = os.isroot sandbox_os.mclock = os.mclock sandbox_os.nuldev = os.nuldev sandbox_os.getenv = os.getenv diff --git a/xmake/modules/package/manager/yum/install.lua b/xmake/modules/package/manager/yum/install.lua index 5704956dd..dcbffbc02 100644 --- a/xmake/modules/package/manager/yum/install.lua +++ b/xmake/modules/package/manager/yum/install.lua @@ -33,7 +33,7 @@ import("lib.detect.find_tool") -- -- @return true or false -- -function install(name, opt) +function main(name, opt) -- init options opt = opt or {} |
