bottle_version: support psutils style

Closes Homebrew/homebrew#37959.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-03-22 21:40:29 +01:00 committed by Mike McQuaid
parent edf205f5ca
commit 941842f0d6

View File

@ -49,6 +49,10 @@ class BottleVersion < Version
m = /-(\d{2})/.match(stem) m = /-(\d{2})/.match(stem)
return m.captures.first unless m.nil? return m.captures.first unless m.nil?
# e.g. p17 from psutils-p17.yosemite.bottle.tar.gz
m = /-(p\d{2})/.match(stem)
return m.captures.first unless m.nil?
super super
end end
end end