aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-03-22 21:40:29 +0100
committerMike McQuaid2015-03-23 08:37:48 +0000
commit941842f0d66740f6ef96005d5440c789828aceab (patch)
tree167421c5ee66d8804031006f5c4af3643adb57e7 /Library
parentedf205f5ca025254a286db4d057fe9badbf6baf0 (diff)
downloadbrew-941842f0d66740f6ef96005d5440c789828aceab.tar.bz2
bottle_version: support psutils style
Closes Homebrew/homebrew#37959. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/bottle_version.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/bottle_version.rb b/Library/Homebrew/bottle_version.rb
index 8cb447229..348d9c971 100644
--- a/Library/Homebrew/bottle_version.rb
+++ b/Library/Homebrew/bottle_version.rb
@@ -49,6 +49,10 @@ class BottleVersion < Version
m = /-(\d{2})/.match(stem)
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
end
end