commit:     8020ba3fecac01decfe08d0cd179ece07fab68d6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 11 17:23:45 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 11 17:23:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8020ba3f

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 <AT> gentoo.org>

 dev-python/blake3/blake3-0.4.1-r1.ebuild | 5 +++--
 1 file 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() {

Reply via email to