commit:     5f1d3be676c97fe891c5a60226242a22b6fad241
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Mon Dec 25 20:05:26 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Dec 25 20:05:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5f1d3be6

dev-python/sphinx-design: die gracefully

Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>

 dev-python/sphinx-design/sphinx-design-0.5.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/sphinx-design/sphinx-design-0.5.0.ebuild 
b/dev-python/sphinx-design/sphinx-design-0.5.0.ebuild
index af65ddcaa4..67f8e4e04c 100644
--- a/dev-python/sphinx-design/sphinx-design-0.5.0.ebuild
+++ b/dev-python/sphinx-design/sphinx-design-0.5.0.ebuild
@@ -22,8 +22,8 @@ RDEPEND="
 "
 
 src_prepare() {
-       find "${S}/docs" -type f -exec sed -i 
's/sphinxcontrib.napoleon/sphinx\.ext\.napoleon/g' {} \;
-       rm -rf "${S}/tests"
+       find "${S}/docs" -type f -exec sed -i 
's/sphinxcontrib.napoleon/sphinx\.ext\.napoleon/g' {} \; || die "Could not find 
and replace sphinxcontrib.napoleon"
+       rm -rf "${S}/tests" || die "Could not remove ${S}/tests"
        use doc && HTML_DOCS="${S}/docs/_build/html"
        distutils-r1_src_prepare
 }

Reply via email to