X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.cpp;h=3bcf3cbc5fb1ebab8d83b3dd352af2c955518a15;hb=1a75d7e01d0704f83633f696a312744de272b4c4;hp=b49e6fe08a7279b3bdddcde002955b4516cf50df;hpb=0b16c3de0f9dc01bd8a9708008f9435fe0252df1;p=builder.git diff --git a/source/tar.cpp b/source/tar.cpp index b49e6fe..3bcf3cb 100644 --- a/source/tar.cpp +++ b/source/tar.cpp @@ -19,9 +19,8 @@ Target *Tar::create_target(const list &sources, const string &arg) con { if(!sources.front()->get_package()) throw invalid_argument("Tar::create_target"); - const SourcePackage &src_pkg = dynamic_cast(*sources.front()->get_package()); - TarBall *tarball = new TarBall(builder, src_pkg, arg); + TarBall *tarball = new TarBall(builder, *sources.front()->get_package(), arg); for(list::const_iterator i=sources.begin(); i!=sources.end(); ++i) tarball->add_depend(*i); @@ -38,9 +37,7 @@ Task *Tar::run(const Target &target) const Tar::Worker::Worker(const TarBall &tb): tarball(tb) -{ - launch(); -} +{ } void Tar::Worker::main() {