diff options
| author | ruki <[email protected]> | 2024-06-14 22:51:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-06-14 22:51:22 +0800 |
| commit | 78500d686de1ff75688d76be648cf90d6f238166 (patch) | |
| tree | 5cac7df6957f258b4194d77d9e77d30c433665c8 /xmake/plugins/pack/deb/main.lua | |
| parent | 2896c4ca3ac7010f8c0c63e8fd3b09721b118b64 (diff) | |
improve build requires
Diffstat (limited to 'xmake/plugins/pack/deb/main.lua')
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index 0eba9becb..1ea95d5d4 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -140,7 +140,7 @@ function _get_specvars(package) local buildrequires = package:get("buildrequires") if buildrequires then for _, buildrequire in ipairs(buildrequires) do - table.insert(requires, " " .. buildrequire .. ",") + table.insert(requires, buildrequire) end else local programs = hashset.new() @@ -158,11 +158,11 @@ function _get_specvars(package) for _, program in programs:keys() do local requirename = map[program] if requirename then - table.insert(requires, " " .. requirename .. ",") + table.insert(requires, requirename) end end end - return table.concat(requires, "\n") + return table.concat(requires, ", ") end return specvars end @@ -223,7 +223,7 @@ function _pack_deb(debuild, package) archive.archive(archivefile, archivefiles, {curdir = rootdir, compress = "best"}) -- build package, TODO modify key - os.vrunv(debuild, {"-S", "-k02713554FA2CE4AADA20AB23167A22F22C0C68C9"}, {curdir = workdir}) + os.vrunv(debuild, {"-us", "-uc"}, {curdir = workdir}) end function main(package) |
