summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/xrepo/action/fetch.lua2
-rw-r--r--xmake/modules/private/xrepo/action/install.lua2
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