aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb5
-rw-r--r--Library/Homebrew/os/mac/keg.rb4
2 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 837968615..17ff3bcef 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -188,6 +188,7 @@ class Keg
@name = path.parent.basename.to_s
@linked_keg_record = HOMEBREW_LINKED_KEGS/name
@opt_record = HOMEBREW_PREFIX/"opt/#{name}"
+ @require_relocation = false
end
def rack
@@ -217,6 +218,10 @@ class Keg
true
end
+ def require_relocation?
+ @require_relocation
+ end
+
def linked?
linked_keg_record.symlink? &&
linked_keg_record.directory? &&
diff --git a/Library/Homebrew/os/mac/keg.rb b/Library/Homebrew/os/mac/keg.rb
index b2a769849..674ea3330 100644
--- a/Library/Homebrew/os/mac/keg.rb
+++ b/Library/Homebrew/os/mac/keg.rb
@@ -24,8 +24,4 @@ class Keg
EOS
raise
end
-
- def require_relocation?
- @require_relocation
- end
end