diff options
| author | ruki <[email protected]> | 2026-01-14 22:48:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-14 22:48:30 +0800 |
| commit | 9f71467fa46e1edb56fc51470dc99ccbb6c67a59 (patch) | |
| tree | 533b77827e803068ce875338e3e90c9f7d91127a | |
| parent | 00674169af6ae8b5eeb1d0d95c24a1571130fd9d (diff) | |
fix oldpkg
| -rw-r--r-- | xmake/actions/package/main.lua | 2 | ||||
| -rw-r--r-- | xmake/actions/package/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/macro/macros/package.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/package/main.lua b/xmake/actions/package/main.lua index caf77d465..cc4202596 100644 --- a/xmake/actions/package/main.lua +++ b/xmake/actions/package/main.lua @@ -25,7 +25,7 @@ import("core.base.hashset") -- main entry function main() local format = option.get("format") or "local" - local maps = hashset.from({"local", "remote", "localpkg"}) + local maps = hashset.from({"local", "remote", "oldpkg"}) if maps:has(format) then import(format)() else diff --git a/xmake/actions/package/xmake.lua b/xmake/actions/package/xmake.lua index 13fdbd667..283edc815 100644 --- a/xmake/actions/package/xmake.lua +++ b/xmake/actions/package/xmake.lua @@ -30,7 +30,7 @@ task("package") {'a', "all", "k", nil, "Package all targets."}, {}, {'f', "format", "kv", "local", "Set the package format.", - values = {"localpkg", "local", "remote"}}, + values = {"oldpkg", "local", "remote"}}, {nil, "homepage", "kv", nil, "Set the homepage of package."}, {nil, "description","kv", nil, "Set the description of package."}, {nil, "url", "kv", nil, "Set the url of remote package."}, diff --git a/xmake/plugins/macro/macros/package.lua b/xmake/plugins/macro/macros/package.lua index 7954ce850..8f171f4ec 100644 --- a/xmake/plugins/macro/macros/package.lua +++ b/xmake/plugins/macro/macros/package.lua @@ -65,7 +65,7 @@ function main(argv) table.insert(argv, "-D") end os.execv(os.programfile(), argv) - argv = {"p", "-f", "localpkg"} + argv = {"p", "-f", "oldpkg"} if args.outputdir then table.insert(argv, "-o") table.insert(argv, args.outputdir) |
