From: Mikko Rasa Date: Wed, 18 Jul 2012 20:22:51 +0000 (+0300) Subject: Save caches again after building to allow storing data obtained during build X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1867268a37795e4f89f147b224389f6e3db6ce4c;p=builder.git Save caches again after building to allow storing data obtained during build --- diff --git a/source/builder.cpp b/source/builder.cpp index 1c90aa8..df7edab 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -518,6 +518,13 @@ int Builder::do_build() else if(show_progress) logger.log("summary", "Build complete"); + if(!dry_run) + { + const PackageManager::PackageMap &packages = package_manager.get_packages(); + for(PackageManager::PackageMap::const_iterator i=packages.begin(); i!=packages.end(); ++i) + i->second->save_caches(); + } + return fail; }