FS::Path path(*i);
if(FS::is_dir(path))
{
+ pkg.get_builder().get_logger().log("files", format("Traversing %s", path));
list<string> sfiles = list_files(path);
for(list<string>::iterator j=sfiles.begin(); j!=sfiles.end(); ++j)
files.push_back(path / *j);
FS::Path fn = package.get_source()/".config";
+ package.get_builder().get_logger().log("files", format("Writing %s", fn));
IO::BufferedFile out(fn.str(), IO::M_WRITE);
for(OptionMap::const_iterator i=options.begin(); i!=options.end(); ++i)
FS::Stat stat = FS::stat(fn);
if(stat)
{
+ package.get_builder().get_logger().log("files", format("Reading %s", fn));
IO::BufferedFile in(fn.str());
mtime = stat.get_modify_time();
if(deps.empty() || !changed)
return;
- IO::BufferedFile out((package.get_source()/".deps").str(), IO::M_WRITE);
+ FS::Path fn = package.get_source()/".deps";
+ package.get_builder().get_logger().log("files", format("Writing %s", fn));
+ IO::BufferedFile out(fn.str(), IO::M_WRITE);
for(DepsMap::const_iterator i=deps.begin(); i!=deps.end(); ++i)
{
void DependencyCache::load()
{
- string fn = (package.get_source()/".deps").str();
+ FS::Path fn = package.get_source()/".deps";
if(FS::Stat st = FS::stat(fn))
{
- IO::BufferedFile in(fn);
+ package.get_builder().get_logger().log("files", format("Reading %s", fn));
+ IO::BufferedFile in(fn.str());
string line;
while(in.getline(line))
{
for(list<FS::Path>::const_iterator i=pkg_path.begin(); i!=pkg_path.end(); ++i)
{
+ builder.get_logger().log("files", format("Traversing %s", *i));
list<string> files = list_files(*i);
for(list<string>::const_iterator j=files.begin(); j!=files.end(); ++j)
{