forked from qt-creator/qt-creator
Fix copying of symlinks when creating package
Another fixup of fd54a377fe
Change-Id: Ica9635f37a98eba7277517c70ae59409ca71f176
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ def main():
|
|||||||
tempdir_base = tempfile.mkdtemp()
|
tempdir_base = tempfile.mkdtemp()
|
||||||
tempdir = os.path.join(tempdir_base, os.path.basename(arguments.source_directory))
|
tempdir = os.path.join(tempdir_base, os.path.basename(arguments.source_directory))
|
||||||
try:
|
try:
|
||||||
common.copytree(arguments.source_directory, tempdir,
|
common.copytree(arguments.source_directory, tempdir, symlinks=True,
|
||||||
ignore=(is_not_debug if arguments.debug else is_debug))
|
ignore=(is_not_debug if arguments.debug else is_debug))
|
||||||
zip_source = os.path.join(tempdir, '*') if arguments.exclude_toplevel else tempdir
|
zip_source = os.path.join(tempdir, '*') if arguments.exclude_toplevel else tempdir
|
||||||
subprocess.check_call([arguments.sevenzip, 'a', '-mx9',
|
subprocess.check_call([arguments.sevenzip, 'a', '-mx9',
|
||||||
|
Reference in New Issue
Block a user