community/py3-libarchive-c: fix test
Fix failed test with a newer version of libarchive. The error led to a rebuild failure on a 3.21 builder (error log).
def test_check_archiveentry_using_python_testtar():
> check_entries(join(data_dir, 'testtar.tar'))
tests/test_entry.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_entry.py:95: in check_entries
actual = list(get_entries(test_file))
tests/__init__.py:47: in get_entries
for entry in arch:
libarchive/read.py:27: in __iter__
r = read_next_header2(archive_p, entry._entry_p)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
retcode = -10, func = <_FuncPtr object at 0x7fffeff64590>
args = (140737220359952, 140737219013264)
def check_int(retcode, func, args):
if retcode >= 0:
return retcode
elif retcode == ARCHIVE_WARN:
logger.warning(_error_string(args[0]))
return retcode
else:
> raise archive_error(args[0], retcode)
E libarchive.exception.ArchiveError: Damaged tar archive (errno=22, retcode=-10, archive_p=140737220359952)
libarchive/ffi.py:98: ArchiveError