X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstalledfile.cpp;h=4638cc40d6cec73cdb4b9af420c3d947da385523;hb=a0868300fc26496b5a7551d1b732925c11350fdd;hp=6960ccead45599ca62cbc0f1302076fe80bd7682;hpb=69cdee2c53972c1dd7e1b9d83ddcd8f6c3c589f7;p=builder.git diff --git a/source/installedfile.cpp b/source/installedfile.cpp index 6960cce..4638cc4 100644 --- a/source/installedfile.cpp +++ b/source/installedfile.cpp @@ -58,3 +58,10 @@ void InstalledFile::check_rebuild() else if(!link.empty() && !FS::exists(link)) mark_rebuild("Symlink does not exist"); } + +void InstalledFile::clean() +{ + if(!link.empty() && mtime) + FS::unlink(link); + FileTarget::clean(); +}