Commit ca071d2d authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

tracker: Ignore ENOENT trying to reset miner data

If one tries to "tracker3 reset -s" multiple times, the second time

(tracker reset:56140): Tracker-CRITICAL **: 12:35:42.437: Location does not have a Tracker DB: Error opening directory '/home/carlos/.cache/tracker3/files/errors': No such file or directory

will happen. Try to avoid this silly situation.
parent b8ce2eab
......@@ -143,8 +143,11 @@ delete_location_content (GFile *dir)
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
NULL, &error);
if (error) {
g_critical ("Location does not have a Tracker DB: %s",
error->message);
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
g_critical ("Location does not have a Tracker DB: %s",
error->message);
}
g_error_free (error);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment