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/link-rule.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/cc/link-rule.cxx') diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx index 6c6aa0d..cffd731 100644 --- a/build2/cc/link-rule.cxx +++ b/build2/cc/link-rule.cxx @@ -1689,7 +1689,7 @@ namespace build2 path& mf (p.first); bool mf_cf (p.second); // Changed flag (timestamp resolution). - timestamp mf_mt (file_mtime (mf)); + timestamp mf_mt (mtime (mf)); if (tsys == "mingw32") { @@ -1699,7 +1699,7 @@ namespace build2 // manifest = mf + ".o"; - if (mf_mt > file_mtime (manifest) || mf_cf) + if (mf_mt > mtime (manifest) || mf_cf) { path of (relative (manifest)); -- cgit v1.1