-#include <errno.h>
+#include <unistd.h>
#include <sys/stat.h>
#include <msp/fs/dir.h>
#include <msp/fs/stat.h>
Target *Copy::create_target(const list<Target *> &sources, const string &arg) const
{
FileTarget &file_tgt = dynamic_cast<FileTarget &>(*sources.front());
- const SourcePackage &pkg = dynamic_cast<const SourcePackage &>(*file_tgt.get_package());
- InstalledFile *inst = new InstalledFile(builder, pkg, file_tgt, arg);
+ InstalledFile *inst = new InstalledFile(builder, *file_tgt.get_package(), file_tgt, arg);
inst->set_tool(*this);
return inst;
}
Copy::Worker::Worker(const InstalledFile &t):
target(t)
-{
- launch();
-}
+{ }
void Copy::Worker::main()
{