diff options
| author | Mike McQuaid | 2013-06-04 20:35:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-06-08 16:41:44 +0100 |
| commit | 4ae8aed783476cf27991546b3da9a0c5124563c6 (patch) | |
| tree | 5a8378216b3e228902a37c8ee5493437b9979518 /Library | |
| parent | 3ec2c72eb23b34268281883111753ffdd4a81323 (diff) | |
| download | homebrew-4ae8aed783476cf27991546b3da9a0c5124563c6.tar.bz2 | |
Bottle DSL: allow checksums access.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 54f00f262..114e46de4 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -90,7 +90,8 @@ class Bottle < SoftwareSpec # a Hash, which indicates the platform the checksum applies on. Checksum::TYPES.each do |cksum| class_eval <<-EOS, __FILE__, __LINE__ + 1 - def #{cksum}(val) + def #{cksum}(val=nil) + return @#{cksum} if val.nil? @#{cksum} ||= Hash.new case val when Hash |
