[gnome-software] Correctly identify installing local packages with sources
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Correctly identify installing local packages with sources
- Date: Fri, 26 Feb 2016 15:15:41 +0000 (UTC)
commit aa5d6ba09939637f9d6f80f93827ea2140fbae2a
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 26 15:06:14 2016 +0000
Correctly identify installing local packages with sources
src/plugins/gs-plugin-packagekit-refresh.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refresh.c b/src/plugins/gs-plugin-packagekit-refresh.c
index 7aa5c96..171e554 100644
--- a/src/plugins/gs-plugin-packagekit-refresh.c
+++ b/src/plugins/gs-plugin-packagekit-refresh.c
@@ -283,6 +283,10 @@ gs_plugin_packagekit_refresh_guess_app_id (GsPlugin *plugin,
item = g_ptr_array_index (array, i);
fns = pk_files_get_files (item);
for (j = 0; fns[j] != NULL; j++) {
+ if (g_str_has_prefix (fns[j], "/etc/yum.repos.d/") &&
+ g_str_has_suffix (fns[j], ".repo")) {
+ gs_app_add_quirk (app, AS_APP_QUIRK_HAS_SOURCE);
+ }
if (g_str_has_prefix (fns[j], "/usr/share/applications/") &&
g_str_has_suffix (fns[j], ".desktop")) {
g_autofree gchar *basename = g_path_get_basename (fns[j]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]