aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/ffsubsync
diff options
context:
space:
mode:
authorLouis Vézina <[email protected]>2020-08-23 22:38:13 -0400
committerLouis Vézina <[email protected]>2020-08-23 22:38:13 -0400
commit8940ee617d23abca843b7c93ca313353dd59d36e (patch)
tree0ddf7e4dba6c52b5871179ce98156ddf5e921c5b /libs/ffsubsync
parentbb38d5397cbc94e53a8aa6ff3f1a7e59639cdfcf (diff)
downloadbazarr-8940ee617d23abca843b7c93ca313353dd59d36e.tar.gz
bazarr-8940ee617d23abca843b7c93ca313353dd59d36e.zip
Merged upstream changes in ffsubsync
Diffstat (limited to 'libs/ffsubsync')
-rw-r--r--libs/ffsubsync/ffsubsync.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ffsubsync/ffsubsync.py b/libs/ffsubsync/ffsubsync.py
index 31815762f..b05249297 100644
--- a/libs/ffsubsync/ffsubsync.py
+++ b/libs/ffsubsync/ffsubsync.py
@@ -63,12 +63,12 @@ def make_test_case(args, npy_savename, sync_was_successful):
preferred_formats = ['gztar', 'bztar', 'xztar', 'zip', 'tar']
for archive_format in preferred_formats:
if archive_format in supported_formats:
- shutil.make_archive(tar_dir, 'gztar', os.curdir, tar_dir)
+ shutil.make_archive(tar_dir, archive_format, os.curdir, tar_dir)
break
- else:
- logger.error('failed to create test archive; no formats supported '
- '(this should not happen)')
- return 1
+ else:
+ logger.error('failed to create test archive; no formats supported '
+ '(this should not happen)')
+ return 1
logger.info('...done')
finally:
shutil.rmtree(tar_dir)