pkgmeek: delegated to p7zip the archives that gnu tar does not recognize

This commit is contained in:
John McQuah 2022-06-21 06:38:42 -04:00
parent 35b6c4e4f2
commit a9d28989f1

View File

@ -141,8 +141,10 @@ if [ "$pkg_utd" = 0 ] || [ "$PKGMK_FORCE" = "yes" ]; then
for (( u=0; u<${#_local_[@]}; u++ )) ; do
here="${_local_[$u]}"
case "$here" in
*.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm)
*.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz)
tar -C src --no-same-owner -paxf "$here" || errUZ+=1 ;;
*.7z|*.zip|*.rpm)
7z x -osrc "$here" || errUZ+=1 ;;
*)
cp -r "$here" src/ ;;
esac