Merge pull request #9141 from jonchang/old-macos-audits

audit: don't error on old OS X versions
This commit is contained in:
Jonathan Chang 2020-11-15 20:51:11 +11:00 committed by GitHub
commit 63b03fb8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -918,6 +918,7 @@ module Homebrew
newest_committed_url = nil
fv.rev_list("origin/master") do |rev|
begin
fv.formula_at_revision(rev) do |f|
stable = f.stable
next if stable.blank?
@ -932,6 +933,9 @@ module Homebrew
newest_committed_revision ||= previous_revision
newest_committed_url ||= stable.url
end
rescue MacOSVersionError
break
end
break if previous_version && current_version != previous_version
break if previous_revision && current_revision != previous_revision