From: Mikko Rasa Date: Thu, 10 May 2012 21:15:35 +0000 (+0300) Subject: Don't try to unlink nonexistent files X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=25376a637c584fc9d491bb6a40c4c483341418b0;p=builder.git Don't try to unlink nonexistent files --- diff --git a/source/builder.cpp b/source/builder.cpp index 69bd607..9fdb8ee 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -648,7 +648,8 @@ int Builder::do_clean() for(set::iterator i=clean_tgts.begin(); i!=clean_tgts.end(); ++i) if(FileTarget *ft = dynamic_cast(*i)) - unlink(ft->get_path()); + if(ft->get_mtime()) + FS::unlink(ft->get_path()); return 0; }