X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.cpp;h=d43a5b0cbb24e0e49dc384591f9300201e6a58ff;hb=bdc8b6638b486aa668b4a9c6c5cce5f6b5f18222;hp=da579250a15654b978cda94eef621af1afbe319e;hpb=4d0d003b022943d8a0e39ba19078bab8d32d8857;p=builder.git diff --git a/source/tar.cpp b/source/tar.cpp index da57925..d43a5b0 100644 --- a/source/tar.cpp +++ b/source/tar.cpp @@ -6,6 +6,8 @@ Distributed under the LGPL */ #include +#include +#include #include #include "builder.h" #include "sourcepackage.h" @@ -40,7 +42,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 +75,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