From 29aabba0ea759c6a2864ff5631735b67ee38e5e0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 5 Feb 2020 18:44:56 +0000 Subject: gentoo resync : 05.02.2020 --- eclass/ghc-package.eclass | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'eclass/ghc-package.eclass') diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass index 27fafff5a21b..dbe7dc2a5acd 100644 --- a/eclass/ghc-package.eclass +++ b/eclass/ghc-package.eclass @@ -22,14 +22,20 @@ esac # @DESCRIPTION: # returns the name of the ghc executable ghc-getghc() { - type -P ${HC:-ghc} + if ! type -P ${HC:-ghc}; then + ewarn "ghc not found" + type -P false + fi } # @FUNCTION: ghc-getghcpkg # @DESCRIPTION: # Internal function determines returns the name of the ghc-pkg executable ghc-getghcpkg() { - type -P ${HC_PKG:-ghc-pkg} + if ! type -P ${HC_PKG:-ghc-pkg}; then + ewarn "ghc-pkg not found" + type -P false + fi } # @FUNCTION: ghc-getghcpkgbin -- cgit v1.2.3