From 05d0f1a17f9f4a9d659274d91dfb164055453637 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 6 Nov 2009 02:07:56 -0500 Subject: The binary cache is working again --- src/journal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/journal.cc') diff --git a/src/journal.cc b/src/journal.cc index 31557635..3a4ada47 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -201,7 +201,8 @@ std::size_t journal_t::read(const path& pathname, ifstream stream(filename); std::size_t count = read(stream, filename, master, scope); - sources.push_back(fileinfo_t(filename)); + if (count > 0) + sources.push_back(fileinfo_t(filename)); return count; } -- cgit v1.2.3