diff options
| author | Mike McQuaid | 2011-06-22 17:16:26 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2011-06-22 17:48:20 +0100 |
| commit | 6d3c488d4a3cfbd34642172b13aaba9713254fac (patch) | |
| tree | 5ec737e44e6a87a5ab9b99cd23b08fbfeeaa08f1 | |
| parent | bd2fa562c38d5447e4d4a79f1609cfb8c911b55c (diff) | |
| download | brew-6d3c488d4a3cfbd34642172b13aaba9713254fac.tar.bz2 | |
Renaming pouring method to pourable?.
| -rw-r--r-- | Library/Homebrew/formula.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 851a8f678..33570854a 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -119,7 +119,7 @@ class Formula @url = @head @version = 'HEAD' @spec_to_use = @unstable - elsif pouring + elsif pourable? @spec_to_use = BottleSoftwareSpecification.new(@bottle, @specs) else if @stable.nil? @@ -456,7 +456,7 @@ class Formula end end - def pouring + def pourable? @bottle and not ARGV.build_from_source? end @@ -518,7 +518,7 @@ private def verify_download_integrity fn require 'digest' - if not pouring + if not pourable? type=CHECKSUM_TYPES.detect { |type| instance_variable_defined?("@#{type}") } type ||= :md5 supplied=instance_variable_get("@#{type}") @@ -552,7 +552,7 @@ EOF fetched = @downloader.fetch verify_download_integrity fetched if fetched.kind_of? Pathname - if not pouring + if not pourable? mktemp do @downloader.stage yield @@ -566,7 +566,7 @@ EOF end def patch - return if patches.nil? or pouring + return if patches.nil? or pourable? if not patches.kind_of? Hash # We assume -p1 |
