X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Funlink.cpp;h=f1a548660e93da200102c255382e84853d0fe7bf;hb=4e6fd9a7436d61af311ab83b5ec264b37078fe76;hp=458f5a904f7c5207837c23c33a59e57a868db435;hpb=66d1078c04849ec17a7343d0494d6ed087e04318;p=builder.git diff --git a/source/unlink.cpp b/source/unlink.cpp index 458f5a9..f1a5486 100644 --- a/source/unlink.cpp +++ b/source/unlink.cpp @@ -13,11 +13,16 @@ Distributed under the LGPL Unlink::Unlink(Builder &b, const FileTarget &t): Action(b) { - const SourcePackage &spkg=*static_cast(t.get_package()); + const SourcePackage &spkg = *static_cast(t.get_package()); announce(spkg.get_name(), "RM", relative(t.get_path(), spkg.get_source()).str()); - unlink(t.get_path()); + try + { + unlink(t.get_path()); + } + catch(const Msp::SystemError &) + { } } int Unlink::check()