X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcopy.cpp;h=b756e0c037412012a828075735a7b6fb8eb3b679;hb=dcaf06c2bba4e02a312cd6af24ddc96410e7be4e;hp=b5ac403c4d4eb72e42567122bb656d576287bb5a;hpb=338eefb513953ae55e8e3614c009c242ba8ad74e;p=builder.git diff --git a/source/copy.cpp b/source/copy.cpp index b5ac403..b756e0c 100644 --- a/source/copy.cpp +++ b/source/copy.cpp @@ -7,7 +7,7 @@ #include #include "builder.h" #include "copy.h" -#include "install.h" +#include "installedfile.h" using namespace std; using namespace Msp; @@ -20,20 +20,20 @@ Target *Copy::create_target(const list &sources, const string &arg) co { FileTarget &file_tgt = dynamic_cast(*sources.front()); const SourcePackage &pkg = dynamic_cast(*file_tgt.get_package()); - Install *inst = new Install(builder, pkg, file_tgt, arg); + InstalledFile *inst = new InstalledFile(builder, pkg, file_tgt, arg); inst->set_tool(*this); return inst; } Task *Copy::run(const Target &target) const { - const Install &install = dynamic_cast(target); + const InstalledFile &install = dynamic_cast(target); Worker *worker = new Worker(install); return new InternalTask(worker); } -Copy::Worker::Worker(const Install &t): +Copy::Worker::Worker(const InstalledFile &t): target(t) { launch();