summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--portal/flatpak-portal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/portal/flatpak-portal.c b/portal/flatpak-portal.c
index e477dffe..aaa83405 100644
--- a/portal/flatpak-portal.c
+++ b/portal/flatpak-portal.c
@@ -1029,6 +1029,8 @@ check_for_updates (PortalFlatpakUpdateMonitor *monitor)
const char *local_commit = NULL;
const char *remote_commit;
g_autoptr(GError) error = NULL;
+ g_autoptr(FlatpakDir) dir = NULL;
+ g_autofree char *ref = NULL;
installation_path = update_monitor_get_installation_path (monitor);
@@ -1051,6 +1053,14 @@ check_for_updates (PortalFlatpakUpdateMonitor *monitor)
return; /* Never report updates for uninstalled refs */
}
+ dir = flatpak_installation_get_dir (installation, NULL);
+ if (dir == NULL)
+ return;
+
+ ref = flatpak_ref_format_ref (FLATPAK_REF (installed_ref));
+ if (flatpak_dir_ref_is_masked (dir, ref))
+ return; /* Never report updates for masked refs */
+
local_commit = flatpak_ref_get_commit (FLATPAK_REF (installed_ref));
origin = flatpak_installed_ref_get_origin (installed_ref);