未验证 提交 6d2c3957 编辑于 作者: Mike McQuaid's avatar Mike McQuaid 提交者: GitHub
浏览文件

Merge pull request #7960 from MikeMcQuaid/delete-more-linkedkegs-symlinks

keg: delete more alias LinkedKegs symlinks.
......@@ -281,11 +281,7 @@ class Keg
end
alias_linkedkegs_symlink = linkedkegs/a
if alias_linkedkegs_symlink.symlink? && alias_linkedkegs_symlink.exist?
alias_linkedkegs_symlink.delete if alias_linkedkegs_symlink.realpath == linked_keg_record.realpath
elsif alias_linkedkegs_symlink.symlink? || alias_linkedkegs_symlink.exist?
alias_linkedkegs_symlink.delete
end
alias_linkedkegs_symlink.delete if alias_linkedkegs_symlink.symlink? || alias_linkedkegs_symlink.exist?
end
Pathname.glob("#{opt_record}@*").each do |a|
......@@ -298,9 +294,7 @@ class Keg
end
alias_linkedkegs_symlink = linkedkegs/a
if alias_linkedkegs_symlink.symlink? && alias_linkedkegs_symlink.exist?
alias_linkedkegs_symlink.delete if rack == alias_linkedkegs_symlink.realpath.parent
end
alias_linkedkegs_symlink.delete if alias_linkedkegs_symlink.symlink? || alias_linkedkegs_symlink.exist?
end
end
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册