build_graph.force_full_rebuild();
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();
- }
+ package_manager.save_all_caches();
return true;
}
return FS::Path();
}
+
+void PackageManager::save_all_caches() const
+{
+ for(PackageMap::const_iterator i=packages.begin(); i!=packages.end(); ++i)
+ i->second->save_caches();
+}
/** Determines the file containing a binary package. The file is expected
to be named after the package. */
Msp::FS::Path get_binary_package_file(const std::string &);
+
+public:
+ void save_all_caches() const;
};
#endif