X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcopy.cpp;h=75d047df7ef50c6371835f456a747f2c34b6121a;hb=0dd3d23846e7fdb729359a57d3f4b190f65aed55;hp=0073320504b0daff45e2c9577a93e9ab4c095dff;hpb=ad88e1ba08cf798e5f87796021c947cf500a02e1;p=builder.git diff --git a/source/copy.cpp b/source/copy.cpp index 0073320..75d047d 100644 --- a/source/copy.cpp +++ b/source/copy.cpp @@ -87,6 +87,8 @@ void Copy::Worker::main() if(!link.empty()) { FS::Path relpath = FS::relative(dst_path, FS::dirname(link)); + if(FS::exists(link)) + FS::unlink(link); symlink(relpath.str().c_str(), link.str().c_str()); }