aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/language
diff options
context:
space:
mode:
authorilovezfs2016-02-22 06:57:21 -0800
committerMike McQuaid2016-02-22 16:16:50 +0000
commit4c1e415bff1c85333120c59f800dd2f9a72043a9 (patch)
tree11daf40372d7be807be2a08217597e7baa6663e7 /Library/Homebrew/language
parent1208e26c74a72d6bdc56751414bb704e47dff99c (diff)
downloadbrew-4c1e415bff1c85333120c59f800dd2f9a72043a9.tar.bz2
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>
Diffstat (limited to 'Library/Homebrew/language')
-rw-r--r--Library/Homebrew/language/haskell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/language/haskell.rb b/Library/Homebrew/language/haskell.rb
index 17ea33fde..8680df3a1 100644
--- a/Library/Homebrew/language/haskell.rb
+++ b/Library/Homebrew/language/haskell.rb
@@ -81,7 +81,7 @@ module Language
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