diff options
| author | Mike McQuaid | 2013-10-30 13:20:48 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-30 13:20:48 -0700 |
| commit | d9d2443d5d3b854095225c96218979165151a716 (patch) | |
| tree | 84e4a97df0901583090ac23c23957c15af8c7594 /Library/Homebrew/cmd | |
| parent | d6ffd493a6265b47800b06a008188b5fc98a9f7c (diff) | |
| download | brew-d9d2443d5d3b854095225c96218979165151a716.tar.bz2 | |
Cleanup use of some global constants.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/create.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/edit.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/tap.rb | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb index c41a80be3..06d45555d 100644 --- a/Library/Homebrew/cmd/create.rb +++ b/Library/Homebrew/cmd/create.rb @@ -118,7 +118,7 @@ class FormulaCreator require 'formula' # Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook - # #{HOMEBREW_PREFIX}/Library/Contributions/example-formula.rb + # #{HOMEBREW_CONTRIB}/example-formula.rb # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! class #{Formula.class_s name} < Formula diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index d41c539dc..b306b5850 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -926,7 +926,7 @@ def check_git_status If this a surprise to you, then you should stash these modifications. Stashing returns Homebrew to a pristine state but can be undone should you later need to do so for some reason. - cd #{HOMEBREW_REPOSITORY}/Library && git stash && git clean -d -f + cd #{HOMEBREW_LIBRARY} && git stash && git clean -d -f EOS end end @@ -1032,7 +1032,7 @@ def check_for_outdated_homebrew timestamp = if File.directory? ".git" `git log -1 --format="%ct" HEAD`.to_i else - (HOMEBREW_REPOSITORY/"Library").mtime.to_i + HOMEBREW_LIBRARY.mtime.to_i end if Time.now.to_i - timestamp > 60 * 60 * 24 then <<-EOS.undent diff --git a/Library/Homebrew/cmd/edit.rb b/Library/Homebrew/cmd/edit.rb index f5635fa81..4e3298c3f 100644 --- a/Library/Homebrew/cmd/edit.rb +++ b/Library/Homebrew/cmd/edit.rb @@ -43,7 +43,7 @@ module Homebrew extend self end def library_folders - Dir["#{HOMEBREW_REPOSITORY}/Library/*"].reject do |d| + Dir["#{HOMEBREW_LIBRARY}/*"].reject do |d| case File.basename(d) when 'LinkedKegs', 'Aliases' then true end end end diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 21ad00c6e..2b17629a5 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -83,7 +83,7 @@ module Homebrew extend self def repair_taps count = 0 # prune dead symlinks in Formula - Dir["#{HOMEBREW_REPOSITORY}/Library/Formula/*.rb"].each do |fn| + Dir["#{HOMEBREW_LIBRARY}/Formula/*.rb"].each do |fn| if not File.exist? fn File.delete fn count += 1 |
