always force the file inside the tarball owned by root

pull/7949/head
Levente Farkas 2017-02-05 10:37:05 +01:00
parent 98e19f257c
commit e2e3057906
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static=
package_arch) package_arch)
current_location = os.path.join(os.getcwd(), current_location) current_location = os.path.join(os.getcwd(), current_location)
if package_type == 'tar': 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(tar_command, shell=True)
run("mv {}.tar.gz {}".format(os.path.join(package_build_root, name), current_location), 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") outfile = os.path.join(current_location, name + ".tar.gz")