*** empty log message ***

This commit is contained in:
John Wiegley 2005-01-14 23:55:22 +00:00
parent 1029560a6e
commit 9a99b755cb

View file

@ -190,6 +190,9 @@ int parse_and_report(int argc, char * argv[], char * envp[])
} }
strings_list::iterator arg = args.begin(); strings_list::iterator arg = args.begin();
if (config.cache_file == "<none>")
config.use_cache = false;
else
config.use_cache = config.data_file.empty() && config.price_db.empty(); config.use_cache = config.data_file.empty() && config.price_db.empty();
DEBUG_PRINT("ledger.config.cache", "1. use_cache = " << config.use_cache); DEBUG_PRINT("ledger.config.cache", "1. use_cache = " << config.use_cache);
@ -218,8 +221,6 @@ int parse_and_report(int argc, char * argv[], char * envp[])
if (config.cache_file.empty()) if (config.cache_file.empty())
config.cache_file = home + "/.ledger-cache"; config.cache_file = home + "/.ledger-cache";
else if (config.cache_file == "<none>")
config.cache_file = "";
if (config.data_file == config.cache_file) if (config.data_file == config.cache_file)
config.use_cache = false; config.use_cache = false;
@ -400,8 +401,7 @@ def vmax(d, val):\n\
// Write out the binary cache, if need be // Write out the binary cache, if need be
if (config.use_cache && config.cache_dirty && if (config.use_cache && config.cache_dirty && ! config.cache_file.empty()) {
! config.cache_file.empty()) {
std::ofstream stream(config.cache_file.c_str()); std::ofstream stream(config.cache_file.c_str());
write_binary_journal(stream, journal.get(), &journal->sources); write_binary_journal(stream, journal.get(), &journal->sources);
} }