From: Mikko Rasa Date: Mon, 16 Jul 2012 19:25:26 +0000 (+0300) Subject: Check for missing symlinks X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9134ce7f2225eb301c7b6c9aca8521c4e82dc065;p=builder.git Check for missing symlinks --- diff --git a/source/installedfile.cpp b/source/installedfile.cpp index f4b8a93..f2909f6 100644 --- a/source/installedfile.cpp +++ b/source/installedfile.cpp @@ -1,3 +1,4 @@ +#include #include #include "builder.h" #include "installedfile.h" @@ -54,4 +55,6 @@ void InstalledFile::check_rebuild() mark_rebuild(source.get_name()+" has changed"); else if(source.needs_rebuild()) mark_rebuild(source.get_name()+" needs rebuilding"); + else if(!link.empty() && !FS::exists(link)) + mark_rebuild("Symlink does not exist"); }