FileTarget already does this
Task *Copy::run(const Target &target) const
{
const InstalledFile &install = dynamic_cast<const InstalledFile &>(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)