mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cleanup: fix version error for cache items without a version
This commit is contained in:
parent
082017e93d
commit
0daa4d98cf
@ -109,7 +109,7 @@ module Homebrew
|
||||
version ||= basename_str[/\A.*(?:--.*?)*--(.*?)#{Regexp.escape(pathname.extname)}\Z/, 1]
|
||||
version ||= basename_str[/\A.*--?(.*?)#{Regexp.escape(pathname.extname)}\Z/, 1]
|
||||
|
||||
return false unless version
|
||||
return false if version.blank?
|
||||
|
||||
version = Version.new(version)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user