diff options
| author | ilovezfs | 2017-03-01 04:25:10 -0800 |
|---|---|---|
| committer | ilovezfs | 2017-03-01 04:25:10 -0800 |
| commit | baf7ba6316b6ccc099d1ca5d1fae5ca26b5fac74 (patch) | |
| tree | 756ae91cd0a1501d0521b4ff185c46c36f48f223 /Library/Homebrew/dev-cmd | |
| parent | d9b43638333b47dd8ed8bcbbb97ef9f8c0ad5756 (diff) | |
| download | brew-baf7ba6316b6ccc099d1ca5d1fae5ca26b5fac74.tar.bz2 | |
bump-formula-pr: check for version presence.
If it's not there, error out rather than fetching to avoid creating
versionless cache files, which cause `brew cleanup` to crash.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 6c7b7d5b5..684843d0d 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -174,6 +174,7 @@ module Homebrew rsrc.download_strategy = CurlDownloadStrategy rsrc.owner = Resource.new(formula.name) rsrc.version = forced_version if forced_version + odie "No version specified!" unless rsrc.version rsrc_path = rsrc.fetch if Utils.popen_read("/usr/bin/tar", "-tf", rsrc_path) =~ %r{/.*\.} new_hash = rsrc_path.sha256 |
