Merge pull request #1070 from LuaAndC/deb-xz

build-pkg: pack Debian packages with xz not gzip
This commit is contained in:
Tony Theodore 2015-12-16 12:03:43 +11:00
commit 272f0c12fb
1 changed files with 2 additions and 1 deletions

View File

@ -496,7 +496,8 @@ local function makePackage(name, files, deps, ver, d1, d2, dst)
local control_fname = dirname .. '/DEBIAN/control'
writeFile(control_fname, control_text)
-- make .deb file
local cmd = 'fakeroot -i deb.fakeroot dpkg-deb -b %s'
local cmd = 'dpkg-deb -Zxz -b %s'
cmd = 'fakeroot -i deb.fakeroot ' .. cmd
os.execute(cmd:format(dirname))
-- cleanup
os.execute(('rm -fr %s deb.fakeroot'):format(dirname))