kexec-tools: drop custom do_extract

This commit is contained in:
Đoàn Trần Công Danh 2023-07-11 23:13:54 +07:00 committed by Đoàn Trần Công Danh
parent 2deec738e1
commit a1d3f7de1d
2 changed files with 6 additions and 11 deletions

View file

@ -30,7 +30,12 @@ vextract() {
local archive="$1"
local ret=0
TAR_CMD="$(command -v bsdtar)"
# When tar is explicitly put *first* in hostmakedepends
# Some packages require tar to build but not for extraction
case "$hostmakedepends " in
"tar "*) TAR_CMD="tar" ;;
esac
[ -z "$TAR_CMD" ] && TAR_CMD="$(command -v bsdtar)"
[ -z "$TAR_CMD" ] && TAR_CMD="$(command -v tar)"
[ -z "$TAR_CMD" ] && msg_error "xbps-src: no suitable tar cmd (bsdtar, tar)\n"
case "$archive" in