commit:     6b3c848cd91dfcc42d80dc1b17b74844154ad117
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 27 13:47:00 2022 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 27 13:47:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b3c848c

dev-util/valgrind: add || die to cp as a sanity check

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

 dev-util/valgrind/valgrind-3.19.0.ebuild | 2 +-
 dev-util/valgrind/valgrind-9999.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/valgrind/valgrind-3.19.0.ebuild 
b/dev-util/valgrind/valgrind-3.19.0.ebuild
index 4ff9c8e71913..11beb6636e97 100644
--- a/dev-util/valgrind/valgrind-3.19.0.ebuild
+++ b/dev-util/valgrind/valgrind-3.19.0.ebuild
@@ -36,7 +36,7 @@ src_prepare() {
 
        # conditionally copy musl specific suppressions && apply patch
        if use elibc_musl ; then
-               cp "${FILESDIR}/musl.supp" "${S}"
+               cp "${FILESDIR}/musl.supp" "${S}" || die
                eapply "${FILESDIR}/valgrind-3.13.0-malloc.patch"
        fi
 

diff --git a/dev-util/valgrind/valgrind-9999.ebuild 
b/dev-util/valgrind/valgrind-9999.ebuild
index 4ff9c8e71913..11beb6636e97 100644
--- a/dev-util/valgrind/valgrind-9999.ebuild
+++ b/dev-util/valgrind/valgrind-9999.ebuild
@@ -36,7 +36,7 @@ src_prepare() {
 
        # conditionally copy musl specific suppressions && apply patch
        if use elibc_musl ; then
-               cp "${FILESDIR}/musl.supp" "${S}"
+               cp "${FILESDIR}/musl.supp" "${S}" || die
                eapply "${FILESDIR}/valgrind-3.13.0-malloc.patch"
        fi
 

Reply via email to