Skip to content
Permalink
Browse files

Do not fail on non existent files during timestamp check.

  • Loading branch information...
egorpugin committed Sep 9, 2019
1 parent 314aaeb commit 4273793830571a3b10e1461991d69a6c3c8bf4ad
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/sw/builder/program_version_storage.cpp
@@ -27,6 +27,8 @@ ProgramVersionStorage::ProgramVersionStorage(const path &fn)
break;
ifile >> v;
ifile >> t;
if (!fs::exists(p))
continue;
auto lwt = fs::last_write_time(p);
if (t && file_time_type2time_t(lwt) <= t)
versions[p] = {v,lwt};

0 comments on commit 4273793

Please sign in to comment.
You can’t perform that action at this time.