Distributed under the LGPL
*/
-#include <iostream>
#include <cstring>
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
#include <msp/io/file.h>
+#include <msp/io/print.h>
#include "builder.h"
#include "sourcepackage.h"
#include "tar.h"
string basename=FS::basename(tarball.get_path());
announce(tarball.get_package()->get_name(), "TAR ", basename);
if(builder.get_verbose()>=2)
- cout<<"Create "<<basename<<'\n';
+ IO::print("Create %s\n", basename);
if(!builder.get_dry_run())
worker=new Worker(*this);
string rel_path=(basedir/relative(ft->get_path(), pkg_src)).str();
if(rel_path.size()>99)
{
- cout<<"Can't store "<<rel_path<<" in tar archive - too long name\n";
+ IO::print("Can't store %s in tar archive - too long name\n", rel_path);
error=true;
break;
}