From 6e126ac30038502acf7016f0e76b3183f1304042 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 3 Apr 2019 21:19:50 +0300 Subject: Change depdb API and handle system_error thrown by butl::file_mtime() Previously, debdb operations threw system_error and io_error to signal errors, except for opening which issued diagnostics and failed. Now all operations print the diagnostics and fail on system and IO errors. --- build2/cc/windows-rpath.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/cc/windows-rpath.cxx') diff --git a/build2/cc/windows-rpath.cxx b/build2/cc/windows-rpath.cxx index 8161cc4..46fe75b 100644 --- a/build2/cc/windows-rpath.cxx +++ b/build2/cc/windows-rpath.cxx @@ -102,7 +102,7 @@ namespace build2 // timestamp t (l != nullptr ? l->load_mtime () - : file_mtime (f.c_str ())); + : mtime (f.c_str ())); if (t > r) r = t; @@ -260,7 +260,7 @@ namespace build2 // through the "from scratch" update. Actually this can happen when // switching to update-for-install. // - if (ts != timestamp_nonexistent && ts <= file_mtime (am)) + if (ts != timestamp_nonexistent && ts <= mtime (am)) return; } -- cgit v1.1