haskell: fix empty flags build failures
Fixes a regression introduced by Homebrew/homebrew#47950 in 9e3ee3e causing build failures with the error cabal: The file does not exist ''. This will occur whenever the optional :flags key isn't in the options hash passed to install_cabal_package. Closes Homebrew/homebrew#49425. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
1208e26c74
commit
4c1e415bff
@ -81,7 +81,7 @@ module Language
|
|||||||
end
|
end
|
||||||
|
|
||||||
args_and_flags = args
|
args_and_flags = args
|
||||||
args_and_flags << flags
|
args_and_flags << flags unless flags.empty?
|
||||||
|
|
||||||
# install dependencies in the sandbox
|
# install dependencies in the sandbox
|
||||||
cabal_install "--only-dependencies", *args_and_flags
|
cabal_install "--only-dependencies", *args_and_flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user