X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.cpp;h=0b61b39b85cd4567b8eaf139ee29fb89958d2a53;hb=b3b2a8666defb9e1a5937bcfefc1bc8e02793aab;hp=da579250a15654b978cda94eef621af1afbe319e;hpb=762be94b71b647a18ef7d6e328280023de732aa8;p=builder.git diff --git a/source/tar.cpp b/source/tar.cpp index da57925..0b61b39 100644 --- a/source/tar.cpp +++ b/source/tar.cpp @@ -6,6 +6,7 @@ Distributed under the LGPL */ #include +#include #include #include "builder.h" #include "sourcepackage.h" @@ -40,7 +41,7 @@ void Tar::Worker::main() const Path &pkg_src=tar.tarball.get_package()->get_source(); Path basedir=splitext(basename(tar.tarball.get_name())).base; - ofstream out(tar.tarball.get_name().c_str()); + IO::File out(tar.tarball.get_name(), IO::M_WRITE); const TargetList &deps=tar.tarball.get_depends(); for(TargetList::const_iterator i=deps.begin(); i!=deps.end(); ++i) { @@ -73,11 +74,10 @@ void Tar::Worker::main() buf[155]=0; out.write(buf, 512); - ifstream in((*i)->get_name().c_str()); + IO::File in((*i)->get_name()); for(int j=0; j