Formula: improve local bottle failure messaging.
This commit is contained in:
parent
d456d42813
commit
a783946b6d
@ -406,7 +406,15 @@ class Formula
|
||||
elsif name.match bottle_regex
|
||||
bottle_filename = Pathname(name).realpath
|
||||
version = Version.parse(bottle_filename).to_s
|
||||
name = bottle_filename.basename.to_s.rpartition("-#{version}").first
|
||||
bottle_basename = bottle_filename.basename.to_s
|
||||
name_without_version = bottle_basename.rpartition("-#{version}").first
|
||||
if name_without_version.empty?
|
||||
if ARGV.homebrew_developer?
|
||||
opoo "Add a new version regex to version.rb to parse this filename."
|
||||
end
|
||||
else
|
||||
name = name_without_version
|
||||
end
|
||||
path = Formula.path(name)
|
||||
install_type = :from_local_bottle
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user