diff options
| author | Mike McQuaid | 2012-03-07 21:30:03 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-10 18:10:40 +1300 |
| commit | 552dcdc7035d7114d47751d93630e37ae6d5bf24 (patch) | |
| tree | 3ba45e367fc79d77fee16b9919a44ca56f712d6f /Library/Homebrew/cmd | |
| parent | 4a306f32f468a0dfb1cd0faad861b3773babfa33 (diff) | |
| download | brew-552dcdc7035d7114d47751d93630e37ae6d5bf24.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}..." |
