[gnome-software/wip/ubuntu-master: 28/28] dpkg: Mark local .debs as managed by APT
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-master: 28/28] dpkg: Mark local .debs as managed by APT
- Date: Thu, 4 May 2017 22:45:31 +0000 (UTC)
commit eaad2e03a29ade88185aae4767e951b9e0c9f828
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]