Add methods for manipulating the opt record
This commit is contained in:
parent
0744ed9410
commit
d792b64655
@ -163,14 +163,19 @@ class Keg
|
|||||||
linked_keg_record.parent.rmdir_if_possible
|
linked_keg_record.parent.rmdir_if_possible
|
||||||
end
|
end
|
||||||
|
|
||||||
def uninstall
|
def optlinked?
|
||||||
path.rmtree
|
opt_record.symlink? && path == opt_record.resolved_path
|
||||||
path.parent.rmdir_if_possible
|
end
|
||||||
|
|
||||||
if opt_record.symlink? && path == opt_record.resolved_path
|
def remove_opt_record
|
||||||
opt_record.unlink
|
opt_record.unlink
|
||||||
opt_record.parent.rmdir_if_possible
|
opt_record.parent.rmdir_if_possible
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def uninstall
|
||||||
|
path.rmtree
|
||||||
|
path.parent.rmdir_if_possible
|
||||||
|
remove_opt_record if optlinked?
|
||||||
end
|
end
|
||||||
|
|
||||||
def unlink
|
def unlink
|
||||||
|
Loading…
x
Reference in New Issue
Block a user