summaryrefslogtreecommitdiff
path: root/dev-python/blake3
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-11 17:23:45 +0000
committerSam James <sam@gentoo.org>2024-11-11 17:23:45 +0000
commit8020ba3fecac01decfe08d0cd179ece07fab68d6 (patch)
tree2b2b5d9994f2543c3b87250c39380da038bb8d7e /dev-python/blake3
parent93a7eb9802f3046d492883a59d944c6fa80ddc4c (diff)
downloadgentoo-8020ba3fecac01decfe08d0cd179ece07fab68d6.tar.gz
gentoo-8020ba3fecac01decfe08d0cd179ece07fab68d6.tar.bz2
gentoo-8020ba3fecac01decfe08d0cd179ece07fab68d6.zip
dev-python/blake3: simplify src_unpack
As suggested by mgorny: unconditionally call cargo_src_unpack as it does the right thing even if there's no crates to unpack, means we don't do it twice. Bug: https://bugs.gentoo.org/943230 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/blake3')
-rw-r--r--dev-python/blake3/blake3-0.4.1-r1.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev-python/blake3/blake3-0.4.1-r1.ebuild b/dev-python/blake3/blake3-0.4.1-r1.ebuild
index 81a5bb4bf3d8..56a207480f01 100644
--- a/dev-python/blake3/blake3-0.4.1-r1.ebuild
+++ b/dev-python/blake3/blake3-0.4.1-r1.ebuild
@@ -113,8 +113,9 @@ pkg_setup() {
}
src_unpack() {
- default
- use rust && cargo_src_unpack
+ # Do this unconditionally as it has sensible behaviour even
+ # w/ USE=-rust.
+ cargo_src_unpack
}
src_prepare() {