[gnome-builder/wip/chergert/flatpak-repo: 14/29] flatpak: dont require cache when resolving extension




commit 006a55d8792418a241ce4bac9c904dc457120cb5
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 24 16:52:55 2021 -0700

    flatpak: dont require cache when resolving extension
    
    We need updates to be able to resolve extensions.
    
    We'll need more testing to ensure we don't block startup on long operations
    but this will get us started.

 src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c 
b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
index 4252c6353..55618f470 100644
--- a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
+++ b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
@@ -1067,10 +1067,8 @@ resolve_extension (GPtrArray  *installations,
   if (sdk_arch == NULL)
     sdk_arch = g_strdup (flatpak_get_default_arch ());
 
-  if (str_equal0 (sdk_arch, flatpak_get_default_arch ()))
-    flags |= FLATPAK_QUERY_FLAGS_ONLY_CACHED;
 #if FLATPAK_CHECK_VERSION(1, 11, 2)
-  else
+  if (!str_equal0 (sdk_arch, flatpak_get_default_arch ()))
     flags |= FLATPAK_QUERY_FLAGS_ALL_ARCHES;
 #else
 # warning "Flatpak is too old, searching for alternate arches will not work"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]