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
commitc0fb261e6889e12b418ebcdfdb3c990a4b39fd75 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /build/scripts/copy_to_dir.py
parentba92f2f3d8a0cfa549b668980b868cbb6ff080ce (diff)
downloadydb-c0fb261e6889e12b418ebcdfdb3c990a4b39fd75.tar.gz
Restoring authorship annotation for <desertfury@yandex-team.ru>. Commit 2 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 57bd46f6d7..9baeb5ffac 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)