Don't use pkg_version when cleaning the cache
Fixes Homebrew/homebrew#27245.
This commit is contained in:
parent
d6937c9d3f
commit
bacf5d7137
@ -68,7 +68,8 @@ module Homebrew extend self
|
|||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
if f.version > version || ARGV.switch?('s') && !f.installed? || bottle_file_outdated?(f, file)
|
v = f.stable.version || f.devel.version || f.head.version
|
||||||
|
if v > version || ARGV.switch?('s') && !f.installed? || bottle_file_outdated?(f, file)
|
||||||
cleanup_cached_file(file)
|
cleanup_cached_file(file)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user