dev-util/pahole: optimize src_unpack

As just done in util-linux & btrfs-progs.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-06-20 11:26:06 +01:00
parent f9e21094ae
commit 642e5d4d08
2 changed files with 18 additions and 26 deletions
+9 -13
View File
@@ -52,21 +52,17 @@ src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack
return
elif use verify-sig ; then
mkdir "${T}"/verify-sig || die
pushd "${T}"/verify-sig &>/dev/null || die
# Upstream sign the decompressed .tar
# Let's do it separately in ${T} then cleanup to avoid external
# effects on normal unpack.
xz -d -c "${DISTDIR}"/${MY_P}.tar.xz > ${MY_P}.tar || die
verify-sig_verify_detached ${MY_P}.tar "${DISTDIR}"/${MY_P}.tar.sign
popd &>/dev/null || die
rm -r "${T}"/verify-sig || die
fi
default
# Upstream sign the decompressed .tar
if use verify-sig; then
einfo "Unpacking ${MY_P}.tar.xz ..."
verify-sig_verify_detached - "${DISTDIR}"/${MY_P}.tar.sign \
< <(xz -cd "${DISTDIR}"/${MY_P}.tar.xz | tee >(tar -x))
assert "Unpack failed"
else
default
fi
}
src_prepare() {
+9 -13
View File
@@ -52,21 +52,17 @@ src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack
return
elif use verify-sig ; then
mkdir "${T}"/verify-sig || die
pushd "${T}"/verify-sig &>/dev/null || die
# Upstream sign the decompressed .tar
# Let's do it separately in ${T} then cleanup to avoid external
# effects on normal unpack.
xz -d -c "${DISTDIR}"/${MY_P}.tar.xz > ${MY_P}.tar || die
verify-sig_verify_detached ${MY_P}.tar "${DISTDIR}"/${MY_P}.tar.sign
popd &>/dev/null || die
rm -r "${T}"/verify-sig || die
fi
default
# Upstream sign the decompressed .tar
if use verify-sig; then
einfo "Unpacking ${MY_P}.tar.xz ..."
verify-sig_verify_detached - "${DISTDIR}"/${MY_P}.tar.sign \
< <(xz -cd "${DISTDIR}"/${MY_P}.tar.xz | tee >(tar -x))
assert "Unpack failed"
else
default
fi
}
src_prepare() {