aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/list.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-15 18:28:42 +0100
committerMike McQuaid2016-09-15 18:28:42 +0100
commit72d10fff0be917df691b02b07b07dccfc8f1d760 (patch)
treec07d6946fc7aef94ff9d833c8404f0275d4211d4 /Library/Homebrew/cmd/list.rb
parent099295163412b19470c500406738c50c2fb2fc8f (diff)
downloadbrew-72d10fff0be917df691b02b07b07dccfc8f1d760.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/cmd/list.rb')
-rw-r--r--Library/Homebrew/cmd/list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index 9d5de74cc..ba236068d 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -111,7 +111,7 @@ module Homebrew
if ARGV.include? "--pinned"
pinned_versions = {}
names.each do |d|
- keg_pin = (HOMEBREW_LIBRARY/"PinnedKegs"/d.basename.to_s)
+ keg_pin = (HOMEBREW_PINNED_KEGS/d.basename.to_s)
if keg_pin.exist? || keg_pin.symlink?
pinned_versions[d] = keg_pin.readlink.basename.to_s
end