Formula#outdated_kegs: check versions aren't identical.
Even if the `version_scheme` does not match: we should never try to `upgrade` (or show `outdated`) for two identical `pkg_version`s. If this is ever needed: a `revision` bump should be done instead. Fixes #7507
This commit is contained in:
parent
b926eeb0d6
commit
5685f379ef
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user