Skip to content
Snippets Groups Projects
Commit a4ff45e5 authored by Jack Nagel's avatar Jack Nagel
Browse files

Use pkg_version when comparing against keg versions

parent 7de2d56f
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ module Homebrew
elsif f.rack.subdirs.length > 1
# If the cellar only has one version installed, don't complain
# that we can't tell which one to keep.
opoo "Skipping #{f.name}: most recent version #{f.version} not installed"
opoo "Skipping #{f.name}: most recent version #{f.pkg_version} not installed"
end
end
......
......@@ -23,7 +23,7 @@ module Homebrew
keg = Keg.new dir
version = keg.version
all_versions << version
older_version = f.version <= version
older_version = f.pkg_version <= version
tap = Tab.for_keg(keg).tap
if tap.nil? || f.tap == tap || older_version
......
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