Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghc-package.eclass: Handle missing ghc in lookups
ghc-getghc() and ghc-getghcpkg() both assume that they can find an installed binary. If ghc isn't installed (e.g., because it's being being rebuilt or has been unmerged), there is no such binary. This causes the intended arguments to be run as a command, which produces "command not found" QA Notices. If ghc can't be found, return "false" instead. The false command will harmlessly absorb the other command-line arguments. This doesn't produce any difference in the final result because the invalid commands were failing anyway. Closes: https://bugs.gentoo.org/683144 Signed-off-by: Benjamin Gordon <[email protected]> Closes: gentoo#14499 Signed-off-by: Sergei Trofimovich <[email protected]>
- Loading branch information