mirror of https://github.com/morpheus65535/bazarr
Merged upstream changes in ffsubsync
This commit is contained in:
parent
bb38d5397c
commit
8940ee617d
|
@ -63,12 +63,12 @@ def make_test_case(args, npy_savename, sync_was_successful):
|
||||||
preferred_formats = ['gztar', 'bztar', 'xztar', 'zip', 'tar']
|
preferred_formats = ['gztar', 'bztar', 'xztar', 'zip', 'tar']
|
||||||
for archive_format in preferred_formats:
|
for archive_format in preferred_formats:
|
||||||
if archive_format in supported_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
|
break
|
||||||
else:
|
else:
|
||||||
logger.error('failed to create test archive; no formats supported '
|
logger.error('failed to create test archive; no formats supported '
|
||||||
'(this should not happen)')
|
'(this should not happen)')
|
||||||
return 1
|
return 1
|
||||||
logger.info('...done')
|
logger.info('...done')
|
||||||
finally:
|
finally:
|
||||||
shutil.rmtree(tar_dir)
|
shutil.rmtree(tar_dir)
|
||||||
|
|
Loading…
Reference in New Issue