mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-15 19:56:59 +08:00
Allow --force for blacklisted formula names
This commit is contained in:
parent
c8d6ee46c5
commit
6c2555b476
@ -102,17 +102,21 @@ def make url
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
case name
|
force_text = "If you really want to make this formula use --force."
|
||||||
|
|
||||||
|
case name.downcase
|
||||||
when /libxml/, /libxlst/, /freetype/, /libpng/
|
when /libxml/, /libxlst/, /freetype/, /libpng/
|
||||||
raise <<-EOS
|
raise <<-EOS
|
||||||
#{name} is blacklisted for creation
|
#{name} is blacklisted for creation
|
||||||
Apple distributes this library with OS X, you can find it in /usr/X11/lib.
|
Apple distributes this library with OS X, you can find it in /usr/X11/lib.
|
||||||
However not all build scripts look here, so you may need to call ENV.x11 or
|
However not all build scripts look here, so you may need to call ENV.x11 or
|
||||||
ENV.libxml2 in your formula's install function.
|
ENV.libxml2 in your formula's install function.
|
||||||
|
|
||||||
|
#{force_text}
|
||||||
EOS
|
EOS
|
||||||
when 'mercurial', 'scons'
|
when 'mercurial', 'scons'
|
||||||
raise "#{name} is blacklisted for creation because it is provided by easy_install"
|
raise "#{name} is blacklisted for creation because it is provided by easy_install.\n\n#{force_text}"
|
||||||
end
|
end unless ARGV.force?
|
||||||
|
|
||||||
__make url, name
|
__make url, name
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user