aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-20 21:16:19 -0700
committerAdam Vandenberg2011-03-20 21:16:19 -0700
commit0fcb6d84066603c90f68a35dddd3d709ceb82070 (patch)
tree9b9c66adec9144eecf3bf305f051a35bbbe5676a /Library/Formula
parent0eec8c9f640563c56ca51f8b95b52d69e9ec9871 (diff)
downloadhomebrew-0fcb6d84066603c90f68a35dddd3d709ceb82070.tar.bz2
aspell: keep going if a bad lang is passed
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aspell.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/aspell.rb b/Library/Formula/aspell.rb
index 68f5956c6..3d7f2fe54 100644
--- a/Library/Formula/aspell.rb
+++ b/Library/Formula/aspell.rb
@@ -34,7 +34,12 @@ class Aspell < Formula
end
end
languages.flatten.each do |lang|
- formula = Object.const_get("Aspell_" + lang).new
+ begin
+ formula = Object.const_get("Aspell_" + lang).new
+ rescue
+ opoo "Unknown language: #{lang}"
+ next
+ end
formula.brew { formula.install }
end
end