[gnome-software] Correctly set the filename as the source for dpkg files



commit 76f41ec2a332a17fd65eb8b6b1bf8809264963ac
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Apr 25 11:24:17 2016 +0200

    Correctly set the filename as the source for dpkg files

 src/plugins/gs-plugin-dpkg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-dpkg.c b/src/plugins/gs-plugin-dpkg.c
index fbbe25c..5714ca0 100644
--- a/src/plugins/gs-plugin-dpkg.c
+++ b/src/plugins/gs-plugin-dpkg.c
@@ -97,7 +97,7 @@ gs_plugin_file_to_app (GsPlugin *plugin,
        /* create app */
        app = gs_app_new (NULL);
        gs_app_set_state (app, AS_APP_STATE_AVAILABLE_LOCAL);
-       gs_app_add_source (app, tokens[0]);
+       gs_app_add_source (app, filename);
        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 * atoi (tokens[2]));


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