From dd53899da2ac044f815030e82a6fcf357df1dff9 Mon Sep 17 00:00:00 2001 From: Espen Henriksen Date: Tue, 28 Mar 2017 19:55:54 +0200 Subject: eclass/cargo: Don't fail on missing directory Previously the cargo_src_install step fails when using `cargo_src_install || die` and no man-directory is included with the crate. This commit corrects this behavior and ensures it does not die in those cases. Package-Manager: Portage-2.3.3 --- eclass/cargo.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/cargo.eclass') diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index dae18a866bdd..32d04a2d559b 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -125,7 +125,7 @@ cargo_src_install() { || die "cargo install failed" rm -f "${D}/usr/.crates.toml" - [ -d "${S}/man" ] && doman "${S}/man" + [ -d "${S}/man" ] && doman "${S}/man" || return 0 } fi -- cgit v1.2.3-65-gdbad