diff options
| author | ruki <[email protected]> | 2022-02-28 22:36:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-02-28 22:36:54 +0800 |
| commit | 1958d47209de46f6a71f6963dcd45b127f7cef1b (patch) | |
| tree | f1abb8ee8edd2fe22999e884c2b9696bcd1a9512 | |
| parent | 941b813c0c788ff664c4fea24f408c8232e24112 (diff) | |
improve xrepo install/fetch
| -rw-r--r-- | xmake/modules/private/xrepo/action/fetch.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/xrepo/action/fetch.lua b/xmake/modules/private/xrepo/action/fetch.lua index 686f6d95a..a114f2fca 100644 --- a/xmake/modules/private/xrepo/action/fetch.lua +++ b/xmake/modules/private/xrepo/action/fetch.lua @@ -118,7 +118,7 @@ function _fetch_packages(packages) end if packagefile then assert(os.isfile("xmake.lua"), "xmake.lua not found!") - os.cp(packagefile, "xmake.lua") + io.writefile("xmake.lua", "includes(\"" .. packagefile .. "\")\n" .. io.readfile("xmake.lua")) end -- do configure first diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua index fbe6965ed..4dd21ca07 100644 --- a/xmake/modules/private/xrepo/action/install.lua +++ b/xmake/modules/private/xrepo/action/install.lua @@ -133,7 +133,7 @@ function _install_packages(packages) end if packagefile then assert(os.isfile("xmake.lua"), "xmake.lua not found!") - os.cp(packagefile, "xmake.lua") + io.writefile("xmake.lua", "includes(\"" .. packagefile .. "\")\n" .. io.readfile("xmake.lua")) end -- disable xmake-stats |
