From 72d10fff0be917df691b02b07b07dccfc8f1d760 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 15 Sep 2016 18:28:42 +0100 Subject: Use constants for LinkedKegs/PinnedKegs/Locks. These definitions are scattered throughout the codebase which makes it hard to refactor them later (my goal is to move them outside of HOMEBREW_LIBRARY). Unify their definitions for clearer code and easier movement later. --- Library/Homebrew/formula.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/formula.rb') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index db59fccc9..2c24c93d7 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -429,10 +429,10 @@ class Formula end # @private - # The `LinkedKegs` directory for this {Formula}. + # The link status symlink directory for this {Formula}. # You probably want {#opt_prefix} instead. def linked_keg - Pathname.new("#{HOMEBREW_LIBRARY}/LinkedKegs/#{name}") + HOMEBREW_LINKED_KEGS/name end def latest_head_version -- cgit v1.2.3