Merge pull request #7949 from lfarkas/master

always force the file inside the tarball owned by root
pull/8911/head
Jonathan A. Sternberg 2017-10-03 14:37:06 -05:00 committed by GitHub
commit 920b2bee2e
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static=
package_arch)
current_location = os.path.join(os.getcwd(), current_location)
if package_type == 'tar':
tar_command = "cd {} && tar -cvzf {}.tar.gz ./*".format(package_build_root, name)
tar_command = "cd {} && tar -cvzf {}.tar.gz --owner=root ./*".format(package_build_root, name)
run(tar_command, shell=True)
run("mv {}.tar.gz {}".format(os.path.join(package_build_root, name), current_location), shell=True)
outfile = os.path.join(current_location, name + ".tar.gz")