[tracker-miners] tracker-extract: Ensure to add, not set, the nie:dataSource tag
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] tracker-extract: Ensure to add, not set, the nie:dataSource tag
- Date: Tue, 14 Nov 2017 22:41:40 +0000 (UTC)
commit 3e7746cdde5f2e2b86262c6eda430b1e1f0b82c8
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 14 21:19:45 2017 +0100
tracker-extract: Ensure to add, not set, the nie:dataSource tag
It's not ok to unset all previous nie:dataSource properties here,
as tracker-miner-fs sets its own.
src/tracker-extract/tracker-extract-decorator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index 6e251f4..7817a12 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -163,7 +163,7 @@ decorator_save_info (TrackerExtractDecorator *decorator,
urn = tracker_decorator_info_get_urn (decorator_info);
tracker_resource_set_identifier (resource, urn);
- tracker_resource_set_uri (resource, "nie:dataSource",
+ tracker_resource_add_uri (resource, "nie:dataSource",
tracker_decorator_get_data_source (TRACKER_DECORATOR (decorator)));
return resource;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]