pkgmeek: rewrote unpack_source() to avoid failures with libarchive locale conversion

This commit is contained in:
John McQuah 2022-06-17 14:57:33 -04:00
parent b31c7493a3
commit 608860f62c

View File

@ -142,7 +142,7 @@ if [ "$pkg_utd" = 0 ] || [ "$PKGMK_FORCE" = "yes" ]; then
here="${_local_[$u]}"
case "$here" in
*.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm)
bsdtar -p -o -C src -xf "$here" || errUZ+=1 ;;
tar -C src --no-same-owner -paxf "$here" || errUZ+=1 ;;
*)
cp -r "$here" src/ ;;
esac