summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-06-20 11:23:07 +0100
committerSam James <sam@gentoo.org>2024-06-20 11:23:17 +0100
commitc4671092372195ac224ea56511e91a828a5796d3 (patch)
treec617721dc53bf91e82fd14e1f4d434289e974735 /dev-python/btrfsutil
parentsys-fs/btrfs-progs: optimize src_unpack further (diff)
downloadgentoo-c4671092372195ac224ea56511e91a828a5796d3.tar.gz
gentoo-c4671092372195ac224ea56511e91a828a5796d3.tar.bz2
gentoo-c4671092372195ac224ea56511e91a828a5796d3.zip
dev-python/btrfsutil: optimize src_unpack further
As mentioned in c8e331071da74d11d651ebd32bbf4efbd25e0f8e. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/btrfsutil')
-rw-r--r--dev-python/btrfsutil/btrfsutil-6.9.ebuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/dev-python/btrfsutil/btrfsutil-6.9.ebuild b/dev-python/btrfsutil/btrfsutil-6.9.ebuild
index 6da2d87766a8..15d87b143716 100644
--- a/dev-python/btrfsutil/btrfsutil-6.9.ebuild
+++ b/dev-python/btrfsutil/btrfsutil-6.9.ebuild
@@ -34,10 +34,13 @@ distutils_enable_tests unittest
RDEPEND+=" !sys-fs/btrfs-progs[python(-)]"
src_unpack() {
- if use verify-sig ; then
- verify-sig_verify_detached \
- <(xz -cd "${DISTDIR}"/${MY_P}.tar.xz) \
- "${DISTDIR}"/${MY_P}.tar.sign
+ # 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
- default
}