[gnome-software/1344-fedora-3rd-party-repos-updates-for-f35: 13/14] packagekit: Set repositories scope as system




commit 363930c8fc8353f43bc4ac0200a8a3a48c8f6935
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 12 18:50:51 2021 +0200

    packagekit: Set repositories scope as system
    
    This will be needed in the gs-repos-dialog when using the new fedora-third-party
    command line tool to distinguish between user-defined and system-defined
    remotes in the Flatpak.

 plugins/packagekit/gs-plugin-packagekit.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 785d03066..da083019a 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -286,6 +286,7 @@ gs_plugin_add_sources (GsPlugin *plugin,
                gs_app_set_management_plugin (app, gs_plugin_get_name (plugin));
                gs_app_set_kind (app, AS_COMPONENT_KIND_REPOSITORY);
                gs_app_set_bundle_kind (app, AS_BUNDLE_KIND_PACKAGE);
+               gs_app_set_scope (app, AS_COMPONENT_SCOPE_SYSTEM);
                gs_app_add_quirk (app, GS_APP_QUIRK_NOT_LAUNCHABLE);
                gs_app_set_state (app, pk_repo_detail_get_enabled (rd) ?
                                  GS_APP_STATE_INSTALLED : GS_APP_STATE_AVAILABLE);


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