[gnome-software/wip/ubuntu-3-24: 20/21] dpkg: Mark local .debs as managed by APT



commit 8aa07e3b7b9e0d0e87db6a789762b6d58b53d777
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Apr 21 16:53:10 2017 +1200

    dpkg: Mark local .debs as managed by APT

 plugins/dpkg/gs-plugin-dpkg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/dpkg/gs-plugin-dpkg.c b/plugins/dpkg/gs-plugin-dpkg.c
index edf77c0..5b44b8c 100644
--- a/plugins/dpkg/gs-plugin-dpkg.c
+++ b/plugins/dpkg/gs-plugin-dpkg.c
@@ -92,6 +92,7 @@ gs_plugin_file_to_app (GsPlugin *plugin,
        app = gs_app_new (NULL);
        gs_app_set_state (app, AS_APP_STATE_AVAILABLE_LOCAL);
        gs_app_add_source (app, tokens[0]);
+       gs_app_set_management_plugin (app, "apt");
        gs_app_set_name (app, GS_APP_QUALITY_LOWEST, tokens[0]);
        gs_app_set_version (app, tokens[1]);
        gs_app_set_size_installed (app, 1024 * g_ascii_strtoull (tokens[2], NULL, 10));


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