FormulaPin: pin at max version

This commit is contained in:
Xu Cheng 2015-11-16 19:20:07 +08:00
parent 0abe554420
commit b3f0b28025

View File

@ -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