[gnome-software] flatpak: Refine the permissions data _after_ origin
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] flatpak: Refine the permissions data _after_ origin
- Date: Mon, 8 Aug 2016 15:59:45 +0000 (UTC)
commit 477a6db163d708276a335873743e4766cd97d387
Author: Richard Hughes <richard hughsie com>
Date: Mon Aug 8 13:40:24 2016 +0100
flatpak: Refine the permissions data _after_ origin
We can do the origin refine without network access so do as much as we can
before we need really it.
src/plugins/gs-flatpak.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index e872073..6b9c2fd 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1305,15 +1305,6 @@ gs_flatpak_refine_app (GsFlatpak *self,
}
}
- /* permissions */
- if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_PERMISSIONS) {
- if (!gs_plugin_refine_item_metadata (self, app,
- cancellable, error)) {
- g_prefix_error (error, "failed to get permissions: ");
- return FALSE;
- }
- }
-
/* origin */
if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_ORIGIN) {
if (!gs_plugin_refine_item_origin_ui (self, app,
@@ -1333,6 +1324,15 @@ gs_flatpak_refine_app (GsFlatpak *self,
}
}
+ /* permissions */
+ if (flags & GS_PLUGIN_REFINE_FLAGS_REQUIRE_PERMISSIONS) {
+ if (!gs_plugin_refine_item_metadata (self, app,
+ cancellable, error)) {
+ g_prefix_error (error, "failed to get permissions: ");
+ return FALSE;
+ }
+ }
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]