Skip to content

Commit

Permalink
haskell: fix empty flags build failures
Browse files Browse the repository at this point in the history
Fixes a regression introduced by 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.
  • Loading branch information
ilovezfs committed Feb 22, 2016
1 parent 8a1f65a commit 86065a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/language/haskell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def install_cabal_package(*args)
end

args_and_flags = args
args_and_flags << flags
args_and_flags << flags unless flags.empty?

# install dependencies in the sandbox
cabal_install "--only-dependencies", *args_and_flags
Expand Down

0 comments on commit 86065a8

Please sign in to comment.