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/common.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/cc/common.cxx') diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index 7844a4e..aca1240 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -639,7 +639,7 @@ namespace build2 { f = d; f /= sn; - mt = file_mtime (f); + mt = mtime (f); if (mt != timestamp_nonexistent) { @@ -694,7 +694,7 @@ namespace build2 // se = string ("dll"); f = f.base (); // Remove .a from .dll.a. - mt = file_mtime (f); + mt = mtime (f); if (mt != timestamp_nonexistent) { @@ -715,7 +715,7 @@ namespace build2 f = d; f /= an; - if ((mt = file_mtime (f)) != timestamp_nonexistent) + if ((mt = mtime (f)) != timestamp_nonexistent) { // Enter the target. Note that because the search paths are // normalized, the result is automatically normalized as well. -- cgit v1.1