Skip to content
Snippets Groups Projects
Unverified Commit bd7969c2 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

audit: fix non-core versioned formulae handling/

Fixes issue mentioned in #9016.
parent dcba99c7
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,7 @@ module Homebrew
problem "#{formula} is versioned but no #{unversioned_name} formula exists"
end
elsif @build_stable && formula.stable? &&
!(versioned_formulae = formula.versioned_formulae).empty?
(versioned_formulae = formula.versioned_formulae - [formula]).present?
versioned_aliases = formula.aliases.grep(/.@\d/)
_, last_alias_version = versioned_formulae.map(&:name).last.split("@")
alias_name_major = "#{formula.name}@#{formula.version.major}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment