Move require_relocation? from os/mac/keg to keg.
This commit is contained in:
parent
9d96a5c512
commit
94dceeab1d
@ -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? &&
|
||||
|
||||
@ -24,8 +24,4 @@ class Keg
|
||||
EOS
|
||||
raise
|
||||
end
|
||||
|
||||
def require_relocation?
|
||||
@require_relocation
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user