diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-03 21:19:50 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-03 21:24:46 +0300 |
commit | 6e126ac30038502acf7016f0e76b3183f1304042 (patch) | |
tree | 0db3f56340e8c55a559e96762742ec925dbca68d /build2/search.cxx | |
parent | a797f6dd584c6f25bac7b0ed122ea7d1d9a42684 (diff) |
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.
Diffstat (limited to 'build2/search.cxx')
-rw-r--r-- | build2/search.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build2/search.cxx b/build2/search.cxx index c4b9ae3..7683ef6 100644 --- a/build2/search.cxx +++ b/build2/search.cxx @@ -4,11 +4,10 @@ #include <build2/search.hxx> -#include <libbutl/filesystem.mxx> // file_mtime() - #include <build2/scope.hxx> #include <build2/target.hxx> #include <build2/context.hxx> +#include <build2/filesystem.hxx> // mtime() #include <build2/prerequisite.hxx> #include <build2/diagnostics.hxx> @@ -148,7 +147,7 @@ namespace build2 f += *ext; } - timestamp mt (file_mtime (f)); + timestamp mt (mtime (f)); if (mt == timestamp_nonexistent) { |