[gnome-settings-daemon] updates: Do not log a warning if the firmware-missing file does not exist
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] updates: Do not log a warning if the firmware-missing file does not exist
- Date: Sat, 27 Aug 2011 14:46:38 +0000 (UTC)
commit 27f64ecf2357bcd459a618f19973ae7b7a73f581
Author: Richard Hughes <richard hughsie com>
Date: Sat Aug 27 15:43:10 2011 +0100
updates: Do not log a warning if the firmware-missing file does not exist
plugins/updates/gsd-updates-firmware.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-firmware.c b/plugins/updates/gsd-updates-firmware.c
index 9abd2dd..837f749 100644
--- a/plugins/updates/gsd-updates-firmware.c
+++ b/plugins/updates/gsd-updates-firmware.c
@@ -856,8 +856,10 @@ scan_directory (GsdUpdatesFirmware *firmware)
/* open the directory of requests */
dir = g_dir_open (GSD_UPDATES_FIRMWARE_MISSING_DIR, 0, &error);
if (dir == NULL) {
- g_warning ("failed to open directory: %s",
- error->message);
+ if (error->code != G_FILE_ERROR_NOENT) {
+ g_warning ("failed to open directory: %s",
+ error->message);
+ }
g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]