Merge pull request #1072 from LuaAndC/build-pkg-full-filelist

build-pkg: update list of files back from .tar.xz
This commit is contained in:
Tony Theodore 2015-12-16 12:05:43 +11:00
commit 3d00ea3748
1 changed files with 7 additions and 0 deletions

View File

@ -473,6 +473,13 @@ local function makePackage(name, files, deps, ver, d1, d2, dst)
local tar_name = dirname .. '.tar.xz'
local cmd = '%s -T %s --owner=root --group=root -cJf %s'
os.execute(cmd:format(tool 'tar', list_path, tar_name))
-- update list of files back from .tar.xz (see #1067)
local cmd = '%s -tf %s'
cmd = cmd:format(tool 'tar', tar_name)
local tar_reader = io.popen(cmd, 'r')
local files_str = tar_reader:read('*all')
tar_reader:close()
writeFile(list_path, files_str)
-- make DEBIAN/control file
local control_text = debianControl {
package = name,