From b3f0b280254e8fb3499080e7b84623ae54c87c85 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Mon, 16 Nov 2015 19:20:07 +0800 Subject: [PATCH] FormulaPin: pin at max version --- Library/Homebrew/formula_pin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_pin.rb b/Library/Homebrew/formula_pin.rb index 842d108c2c..9a9aa4cedf 100644 --- a/Library/Homebrew/formula_pin.rb +++ b/Library/Homebrew/formula_pin.rb @@ -18,7 +18,7 @@ class FormulaPin end def pin - pin_at(@f.rack.subdirs.map { |d| Keg.new(d).version }.first) + pin_at(@f.rack.subdirs.map { |d| Keg.new(d).version }.max) end def unpin