Older bsdtar version can't decompress on the fly. Use xzdec instead

This commit is contained in:
erdgeist 2012-01-02 05:03:13 +00:00
parent 864e6d12b6
commit 7a817c42e7

View File

@ -1010,7 +1010,7 @@ install)
done
if [ ${ezjail_release_major} -ge 9 ]; then
tar --unlink -xpJf -C ${DESTDIR} ${pkg}.txz
xzdec ${pkg}.txz | tar --unlink -xpJf - -C ${DESTDIR}
else
# These actions are really ugly: sources want $1 to contain the set
# of sources to install, base asks the user if he is sure, hence the
@ -1025,7 +1025,7 @@ install)
else
if [ ${ezjail_release_major} -ge 9 ]; then
[ -r "${ezjail_reldir}/${ezjail_dir}/${pkg}.txz" ] || exerr "Error: Can not access package file ${ezjail_reldir}/${ezjail_dir}/${pkg}.txz"
tar --unlink -xpJf -C ${DESTDIR} ${ezjail_reldir}/${ezjail_dir}/${pkg}.txz
xzdec $ ${ezjail_reldir}/${ezjail_dir}/${pkg}.txz | tar --unlink -xpJf - -C ${DESTDIR}
else
cd "${ezjail_reldir}/${ezjail_dir}/${pkg}" || exerr "Error: Could not cd to ${ezjail_dir}."
[ "${pkg}" = "base" ] && echo "Ignore the next question, ezjail answers it for you."