aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorJack Nagel2012-07-05 20:27:38 -0500
committerJack Nagel2012-07-05 20:32:49 -0500
commitbb78df7356533502597a7bbacb529a3d7de71e7a (patch)
tree59663b6d0deeefb3d21ceabec6e3a23dae0d4ab9 /Library/Homebrew/compat
parent577fe6d72b304a3f7148c5b9c1b4d156e100d139 (diff)
downloadbrew-bb78df7356533502597a7bbacb529a3d7de71e7a.tar.bz2
Remove compat's implicit dependency on formula
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/compatibility.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb
index 3f0f23766..879042fd4 100644
--- a/Library/Homebrew/compat/compatibility.rb
+++ b/Library/Homebrew/compat/compatibility.rb
@@ -93,7 +93,9 @@ class Formula
end
class << self
- attr_rw :bottle_sha1
+ def bottle_sha1 val=nil
+ val.nil? ? @bottle_sha1 : @bottle_sha1 = val
+ end
end
end