From 0fc591ecb6046131b65a1996fd6cd8710baeb8fd Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 11 Jan 2023 11:29:47 +0100 Subject: dev-java/protobuf-java: use 'assert' instead of 'die' for shell pipelines Signed-off-by: Florian Schmaus --- dev-java/protobuf-java/protobuf-java-3.21.12.ebuild | 3 ++- dev-java/protobuf-java/protobuf-java-3.21.9-r2.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'dev-java') diff --git a/dev-java/protobuf-java/protobuf-java-3.21.12.ebuild b/dev-java/protobuf-java/protobuf-java-3.21.12.ebuild index da7ae95555d7..7885a6ab21ee 100644 --- a/dev-java/protobuf-java/protobuf-java-3.21.12.ebuild +++ b/dev-java/protobuf-java/protobuf-java-3.21.12.ebuild @@ -55,7 +55,8 @@ src_prepare() { "${S}/core/pom.xml") > "${T}/core_proto" || die "echo to core_proto failed" # Copy them from ../src/google/protobuf to JAVA_RESOURCE_DIRS pushd "${JAVA_RESOURCE_DIRS}" || die - jar cv "@${T}/core_proto" | jar xv || die "Copying protos failed" + jar cv "@${T}/core_proto" | jar xv + assert"Copying protos failed" popd || die # https://github.com/protocolbuffers/protobuf/blob/v21.12/java/core/generate-sources-build.xml diff --git a/dev-java/protobuf-java/protobuf-java-3.21.9-r2.ebuild b/dev-java/protobuf-java/protobuf-java-3.21.9-r2.ebuild index 9dc32c355b91..ef157767a703 100644 --- a/dev-java/protobuf-java/protobuf-java-3.21.9-r2.ebuild +++ b/dev-java/protobuf-java/protobuf-java-3.21.9-r2.ebuild @@ -52,7 +52,8 @@ src_prepare() { "${S}/core/pom.xml") > "${T}/core_proto" || die "echo to core_proto failed" # Copy them from ../src/google/protobuf to JAVA_RESOURCE_DIRS pushd "${JAVA_RESOURCE_DIRS}" || die - jar cv "@${T}/core_proto" | jar xv || die "Copying protos failed" + jar cv "@${T}/core_proto" | jar xv + assert "Copying protos failed" popd || die # https://github.com/protocolbuffers/protobuf/blob/v21.9/java/core/generate-sources-build.xml -- cgit v1.2.3-65-gdbad