[gnome-software/1453-flathub-repo-misleadingly-considered-present-on-fedora-35-with-filtered-flathub] flatpak: Match existing and file remote only if it matches also the filter
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1453-flathub-repo-misleadingly-considered-present-on-fedora-35-with-filtered-flathub] flatpak: Match existing and file remote only if it matches also the filter
- Date: Tue, 21 Sep 2021 12:09:02 +0000 (UTC)
commit a4f8501e3e54b702b5ff2af4bb9aaf6f8d6c324c
Author: Milan Crha <mcrha redhat com>
Date: Tue Sep 21 14:05:03 2021 +0200
flatpak: Match existing and file remote only if it matches also the filter
The filter can change the content, thus match two remotes only if also
the filter matches.
plugins/flatpak/gs-plugin-flatpak.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/plugins/flatpak/gs-plugin-flatpak.c b/plugins/flatpak/gs-plugin-flatpak.c
index 9bdfa80bf..29ba29700 100644
--- a/plugins/flatpak/gs-plugin-flatpak.c
+++ b/plugins/flatpak/gs-plugin-flatpak.c
@@ -1287,6 +1287,8 @@ gs_plugin_flatpak_file_to_app_repo (GsPlugin *plugin,
g_debug ("%s", error_local->message);
continue;
}
+ if (g_strcmp0 (gs_flatpak_app_get_repo_filter (app), gs_flatpak_app_get_repo_filter
(app_tmp)) != 0)
+ continue;
return g_steal_pointer (&app_tmp);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]