27 lines
877 B
Diff
27 lines
877 B
Diff
From 0df31891bfd0ab047d29afbd2313bd98bcf69a98 Mon Sep 17 00:00:00 2001
|
|
From: huyubiao <huyubiao@huawei.com>
|
|
Date: Mon, 6 Nov 2023 20:13:11 +0800
|
|
Subject: [PATCH 033/103] fix: return Ok when the .hwdb and hwdb.bin files
|
|
cannot be found
|
|
|
|
---
|
|
libs/hwdb/src/hwdb_util.rs | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libs/hwdb/src/hwdb_util.rs b/libs/hwdb/src/hwdb_util.rs
|
|
index 2ff6243a..a5c2eac0 100644
|
|
--- a/libs/hwdb/src/hwdb_util.rs
|
|
+++ b/libs/hwdb/src/hwdb_util.rs
|
|
@@ -753,7 +753,7 @@ impl HwdbUtil {
|
|
hwdb_bin
|
|
),
|
|
Err(e) => {
|
|
- if e == nix::Error::ENOENT {
|
|
+ if e != nix::Error::ENOENT {
|
|
log::error!(
|
|
"Failed to remove compiled hwdb database {:?}:{:?}",
|
|
hwdb_bin,
|
|
--
|
|
2.33.0
|
|
|