[gnome-software] trivial: Use any OARS 1.x version
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Use any OARS 1.x version
- Date: Sun, 10 Dec 2017 14:28:08 +0000 (UTC)
commit ff760a35f23156c2442c0f8db7e3abfad8c5da45
Author: Richard Hughes <richard hughsie com>
Date: Wed Dec 6 21:09:23 2017 +0000
trivial: Use any OARS 1.x version
plugins/core/gs-appstream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index e4bcc3d..62c1ad6 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -594,7 +594,7 @@ gs_appstream_refine_app (GsPlugin *plugin,
array = as_app_get_content_ratings (item);
for (i = 0; i < array->len; i++) {
AsContentRating *cr = g_ptr_array_index (array, i);
- if (g_strcmp0 (as_content_rating_get_kind (cr), "oars-1.0") == 0) {
+ if (g_str_has_prefix (as_content_rating_get_kind (cr), "oars-1.")) {
gs_app_set_content_rating (app, cr);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]