diff options
author | desertfury <desertfury@yandex-team.ru> | 2022-02-10 16:50:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:15 +0300 |
commit | ba92f2f3d8a0cfa549b668980b868cbb6ff080ce (patch) | |
tree | b815831791120a80cee7513e248c079077dd1ea2 /build | |
parent | 3d636b3ac8d1e635bba5c5007da7a6d81f2c17f4 (diff) | |
download | ydb-ba92f2f3d8a0cfa549b668980b868cbb6ff080ce.tar.gz |
Restoring authorship annotation for <desertfury@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build')
-rw-r--r-- | build/scripts/copy_to_dir.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/scripts/copy_to_dir.py b/build/scripts/copy_to_dir.py index 9baeb5ffac..57bd46f6d7 100644 --- a/build/scripts/copy_to_dir.py +++ b/build/scripts/copy_to_dir.py @@ -48,9 +48,9 @@ def main(): dest_arch = None if opts.dest_arch: if opts.dest_arch.endswith('.tar'): - dest_arch = tarfile.open(opts.dest_arch, 'w', dereference=True) + dest_arch = tarfile.open(opts.dest_arch, 'w', dereference=True) elif opts.dest_arch.endswith('.tar.gz') or opts.dest_arch.endswith('.tgz'): - dest_arch = tarfile.open(opts.dest_arch, 'w:gz', dereference=True) + dest_arch = tarfile.open(opts.dest_arch, 'w:gz', dereference=True) else: # TODO: move check to graph generation stage raise Exception('Unsopported archive type for {}. Use one of: tar, tar.gz, tgz.'.format(os.path.basename(opts.dest_arch))) @@ -60,7 +60,7 @@ def main(): if dst.startswith(opts.build_root): dst = dst[len(opts.build_root) + 1:] - if dest_arch and not arg.endswith('.pkg.fake'): + if dest_arch and not arg.endswith('.pkg.fake'): dest_arch.add(arg, arcname=dst) dst = os.path.join(opts.dest_dir, dst) |