[gnome-software/wip/kalev/flatpak-version-matching-fixes: 9/9] flatpak: Set the update version when refining appstream
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/flatpak-version-matching-fixes: 9/9] flatpak: Set the update version when refining appstream
- Date: Wed, 10 Jul 2019 10:39:26 +0000 (UTC)
commit 39c496ae3befaa2c29651b9779664c918a31f5a2
Author: Kalev Lember <klember redhat com>
Date: Sun Feb 3 22:58:30 2019 +0100
flatpak: Set the update version when refining appstream
https://gitlab.gnome.org/GNOME/gnome-software/issues/684
plugins/flatpak/gs-flatpak.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index d0b993bf..e9c95dea 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -2109,6 +2109,10 @@ gs_flatpak_refine_appstream_release (XbNode *component, GsApp *app)
case AS_APP_STATE_AVAILABLE_LOCAL:
gs_app_set_version (app, version);
break;
+ case AS_APP_STATE_UPDATABLE:
+ case AS_APP_STATE_UPDATABLE_LIVE:
+ gs_app_set_update_version (app, version);
+ break;
default:
g_debug ("%s is not installed, so ignoring version of %s",
gs_app_get_unique_id (app), version);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]