Move require_relocation? from os/mac/keg to keg.

This commit is contained in:
Markus Reiter 2017-02-11 13:43:00 +01:00
parent 9d96a5c512
commit 94dceeab1d
2 changed files with 5 additions and 4 deletions

View File

@ -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? &&

View File

@ -24,8 +24,4 @@ class Keg
EOS
raise
end
def require_relocation?
@require_relocation
end
end