diff options
| author | Mike McQuaid | 2012-03-07 21:30:03 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-10 18:10:40 +1300 |
| commit | 28b8cc7ee67ed8c1a502e92fde28e5e366cf9139 (patch) | |
| tree | 0632caaa730216f155c2e68fa6f83aa47183358d /Library/Homebrew/cmd | |
| parent | 24476086ae82a4f3d783f547aa0a57e82829787d (diff) | |
| download | homebrew-28b8cc7ee67ed8c1a502e92fde28e5e366cf9139.tar.bz2 | |
Move most bottle stuff to a bottles.rb file.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rwxr-xr-x | Library/Homebrew/cmd/bottle.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 25160b5c6..4a1cd0f36 100755 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -1,17 +1,14 @@ require 'formula' +require 'bottles' require 'tab' module Homebrew extend self - def formula_bottle_name f - "#{f.name}-#{f.version}.#{MacOS.cat}.bottle.tar.gz" - end - def bottle_formula f return onoe "Formula not installed: #{f.name}" unless f.installed? - return onoe "Formula not installed with '--build-bottle': #{f.name}" unless Tab.for_formula(f).built_bottle + return onoe "Formula not installed with '--build-bottle': #{f.name}" unless built_bottle? f directory = Pathname.pwd - filename = formula_bottle_name f + filename = bottle_filename f HOMEBREW_CELLAR.cd do ohai "Bottling #{f.name} #{f.version}..." |
