diff options
author | Benjamin Gordon <bmgordon@chromium.org> | 2020-01-29 12:38:13 -0700 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-29 22:04:46 +0000 |
commit | f58d31d661f7bda2fe7b591419f0d9f138a2dae6 (patch) | |
tree | f04601f913203f12e0b767511d4c40d8874ff222 /metadata/md5-cache/dev-haskell/concurrent-output-1.7.7 | |
parent | x11-libs/libxcb: Add support for Python 3.8. Drop support for Python 2.7. (diff) | |
download | gentoo-f58d31d661f7bda2fe7b591419f0d9f138a2dae6.tar.gz gentoo-f58d31d661f7bda2fe7b591419f0d9f138a2dae6.tar.bz2 gentoo-f58d31d661f7bda2fe7b591419f0d9f138a2dae6.zip |
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 <bmgordon@chromium.org>
Closes: https://github.com/gentoo/gentoo/pull/14499
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'metadata/md5-cache/dev-haskell/concurrent-output-1.7.7')
0 files changed, 0 insertions, 0 deletions