X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcopy.cpp;h=9bca33f3050989900407937c3fd68bb0536f76c6;hb=36c90dafd6ff514919b802ccb54404b882afc944;hp=31e62100d9751d991a0bf59529dd7699973e8ac5;hpb=d1eb133ab529cdae131be7b150209f03189248f3;p=builder.git diff --git a/source/copy.cpp b/source/copy.cpp index 31e6210..9bca33f 100644 --- a/source/copy.cpp +++ b/source/copy.cpp @@ -26,10 +26,7 @@ Target *Copy::create_target(const vector &sources, const string &arg) Task *Copy::run(const Target &target) const { const InstalledFile &install = dynamic_cast(target); - InternalTask *task = new InternalTask([&install]{ return _run(install); }); - task->add_file(install.get_path()); - task->set_unlink(); - return task; + return new InternalTask([&install]{ return _run(install); }); } bool Copy::_run(const InstalledFile &install)