commit:     dd53899da2ac044f815030e82a6fcf357df1dff9
Author:     Espen Henriksen <dev <AT> henriksen <DOT> is>
AuthorDate: Tue Mar 28 17:55:54 2017 +0000
Commit:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
CommitDate: Wed Mar 29 14:25:14 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd53899d

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(-)

diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index dae18a866bd..32d04a2d559 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

Reply via email to