Commit b9faf652 authored by Allan McRae's avatar Allan McRae
Browse files

pactest: set package tar format to GNU_FORMAT

python-3.8 changed the default tar format to PAX_FORMAT. This caused
issues in our testsuite with package extraction of files with UTF-8
characters as we run the tests under the C locale.
error: error while reading package /tmp/pactest-xuhri4xa/var/cache/pacman/pkg/unicodechars-2.0-1.pkg.tar.gz: Pathname can't be converted from UTF-8 to current locale.

Set format back to GNU_FORMAT.

Signed-off-by: Allan McRae's avatarAllan McRae <>
parent 540b1916
......@@ -142,7 +142,7 @@ def makepkg(self, path):
# Generate package metadata
tar =, "w:gz")
tar =, "w:gz", format=tarfile.GNU_FORMAT)
for name, data in archive_files:
info = tarfile.TarInfo(name)
info.size = len(data)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment