]> git.tdb.fi Git - builder.git/commitdiff
Save caches again after building to allow storing data obtained during build
authorMikko Rasa <tdb@tdb.fi>
Wed, 18 Jul 2012 20:22:51 +0000 (23:22 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 18 Jul 2012 20:22:51 +0000 (23:22 +0300)
source/builder.cpp

index 1c90aa8e2229ac6192fcc9bff7c92b7c59417e2a..df7edabbd8e0bae1f28782f3f0bc3a4ffe19e8a2 100644 (file)
@@ -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;
 }