tracker-miners: update to 3.7.1.

This commit is contained in:
oreo639 2024-03-27 21:54:13 -07:00
parent 52a079b94c
commit 3314a7317d
2 changed files with 2 additions and 37 deletions

View File

@ -1,35 +0,0 @@
From 27b8a83c94ea6b3d5efab78b71e050f32f2de927 Mon Sep 17 00:00:00 2001
From: Carlos Garnacho <carlosg@gnome.org>
Date: Sun, 24 Mar 2024 01:09:13 +0100
Subject: [PATCH 2/2] tracker-extract: Do not accept non-URI dc:source in XMP
Our ontology requires this property to be a rdfs:Resource, trying
to insert random strings as IRIs will not work, so ignore the dc:source
in that case.
---
src/libtracker-extract/tracker-xmp.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c
index a0eca15eb..13c21f3cb 100644
--- a/src/libtracker-extract/tracker-xmp.c
+++ b/src/libtracker-extract/tracker-xmp.c
@@ -489,7 +489,14 @@ iterate_simple (const gchar *uri,
} else if (!data->identifier && g_ascii_strcasecmp (name, "identifier") == 0) {
data->identifier = g_strdup (value);
} else if (!data->source && g_ascii_strcasecmp (name, "source") == 0) {
- data->source = g_strdup (value);
+ gchar *uri_scheme;
+
+ uri_scheme = g_uri_parse_scheme (value);
+ if (uri_scheme != NULL) {
+ /* Source seems to be a full URI */
+ data->source = g_strdup (value);
+ g_free (uri_scheme);
+ }
} else if (!data->language && g_ascii_strcasecmp (name, "language") == 0) {
data->language = g_strdup (value);
} else if (!data->relation && g_ascii_strcasecmp (name, "relation") == 0) {
--
GitLab

View File

@ -1,6 +1,6 @@
# Template file for 'tracker-miners'
pkgname=tracker-miners
version=3.7.0
version=3.7.1
revision=1
build_style=meson
build_helper=qemu
@ -28,7 +28,7 @@ license="GPL-2.0-or-later"
homepage="https://tracker.gnome.org/"
changelog="https://gitlab.gnome.org/GNOME/tracker-miners/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/tracker-miners/${version%.*}/tracker-miners-${version}.tar.xz"
checksum=74e796c1625094a8a2175993c7907281e97ab6e002578e846b8f4ca44e36bf61
checksum=50a3abe40cfb0b35ced43ec716dbf1368992e444ef7a0babf202c7ac6ab2f6f4
make_check=no # relies on unsupported ops in chroot
tracker3-miners_package() {