From 9134ce7f2225eb301c7b6c9aca8521c4e82dc065 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 16 Jul 2012 22:25:26 +0300 Subject: [PATCH] Check for missing symlinks --- source/installedfile.cpp | 3 +++ 1 file changed, 3 insertions(+) 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"); } -- 2.43.0