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



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

    dpkg: Mark local .debs as managed by APT

 src/plugins/gs-plugin-dpkg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-dpkg.c b/src/plugins/gs-plugin-dpkg.c
index 89f8bc2..f2da382 100644
--- a/src/plugins/gs-plugin-dpkg.c
+++ b/src/plugins/gs-plugin-dpkg.c
@@ -91,6 +91,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]