aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/copy_to_dir.py
diff options
context:
space:
mode:
authordesertfury <desertfury@yandex-team.ru>2022-02-10 16:50:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:15 +0300
commitba92f2f3d8a0cfa549b668980b868cbb6ff080ce (patch)
treeb815831791120a80cee7513e248c079077dd1ea2 /build/scripts/copy_to_dir.py
parent3d636b3ac8d1e635bba5c5007da7a6d81f2c17f4 (diff)
downloadydb-ba92f2f3d8a0cfa549b668980b868cbb6ff080ce.tar.gz
Restoring authorship annotation for <desertfury@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/scripts/copy_to_dir.py')
-rw-r--r--build/scripts/copy_to_dir.py6
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)