Merge pull request #7534 from MikeMcQuaid/outdated-version

Formula#outdated_kegs: check versions aren't identical.
This commit is contained in:
Mike McQuaid 2020-05-10 15:30:45 +01:00 committed by GitHub
commit 270fd422dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1211,7 +1211,7 @@ class Formula
next if version.head?
tab = Tab.for_keg(keg)
next if version_scheme > tab.version_scheme
next if version_scheme > tab.version_scheme && pkg_version != version
next if version_scheme == tab.version_scheme && pkg_version > version
# don't consider this keg current if there's a newer formula available