Fix third party repo enabling not working
https://bugzilla.redhat.com/show_bug.cgi?id=1749566
This commit is contained in:
parent
a37beadf56
commit
6177408c54
77
0001-extras-Fix-third-party-repo-enabling-not-working.patch
Normal file
77
0001-extras-Fix-third-party-repo-enabling-not-working.patch
Normal file
@ -0,0 +1,77 @@
|
||||
From 53fb971462c465e53d7da7d40184de88943e30a6 Mon Sep 17 00:00:00 2001
|
||||
From: Kalev Lember <klember@redhat.com>
|
||||
Date: Tue, 24 Sep 2019 10:41:55 +0200
|
||||
Subject: [PATCH] extras: Fix third party repo enabling not working
|
||||
|
||||
Make sure to pass REQUIRE_ORIGIN_HOSTNAME refine flag to all of the
|
||||
search calls so that we pick up the enabled=0 enabled_metadata=1 repo
|
||||
name that needs to be enabled.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1749566
|
||||
---
|
||||
src/gs-extras-page.c | 28 ++++++++++++++--------------
|
||||
1 file changed, 14 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/src/gs-extras-page.c b/src/gs-extras-page.c
|
||||
index 0b062ea25..d31ad7747 100644
|
||||
--- a/src/gs-extras-page.c
|
||||
+++ b/src/gs-extras-page.c
|
||||
@@ -672,16 +672,25 @@ gs_extras_page_load (GsExtrasPage *self, GPtrArray *array_search_data)
|
||||
|
||||
/* start new searches, separate one for each codec */
|
||||
for (i = 0; i < self->array_search_data->len; i++) {
|
||||
+ GsPluginRefineFlags refine_flags;
|
||||
SearchData *search_data;
|
||||
|
||||
+ refine_flags = GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_HISTORY |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_ORIGIN_HOSTNAME |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_SETUP_ACTION |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENSE |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING |
|
||||
+ GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES;
|
||||
+
|
||||
search_data = g_ptr_array_index (self->array_search_data, i);
|
||||
if (search_data->search_filename != NULL) {
|
||||
g_autoptr(GsPluginJob) plugin_job = NULL;
|
||||
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_SEARCH_FILES,
|
||||
"search", search_data->search_filename,
|
||||
- "refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING |
|
||||
- GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES,
|
||||
+ "refine-flags", refine_flags,
|
||||
NULL);
|
||||
g_debug ("searching filename: '%s'", search_data->search_filename);
|
||||
gs_plugin_loader_job_process_async (self->plugin_loader,
|
||||
@@ -695,9 +704,7 @@ gs_extras_page_load (GsExtrasPage *self, GPtrArray *array_search_data)
|
||||
file = g_file_new_for_path (search_data->package_filename);
|
||||
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_FILE_TO_APP,
|
||||
"file", file,
|
||||
- "refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING |
|
||||
- GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES,
|
||||
+ "refine-flags", refine_flags,
|
||||
NULL);
|
||||
g_debug ("resolving filename to app: '%s'", search_data->package_filename);
|
||||
gs_plugin_loader_job_process_async (self->plugin_loader, plugin_job,
|
||||
@@ -709,14 +716,7 @@ gs_extras_page_load (GsExtrasPage *self, GPtrArray *array_search_data)
|
||||
g_debug ("searching what provides: '%s'", search_data->search);
|
||||
plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_SEARCH_PROVIDES,
|
||||
"search", search_data->search,
|
||||
- "refine-flags", GS_PLUGIN_REFINE_FLAGS_REQUIRE_ICON |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_VERSION |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_HISTORY |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_SETUP_ACTION |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_DESCRIPTION |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_LICENSE |
|
||||
- GS_PLUGIN_REFINE_FLAGS_REQUIRE_RATING |
|
||||
- GS_PLUGIN_REFINE_FLAGS_ALLOW_PACKAGES,
|
||||
+ "refine-flags", refine_flags,
|
||||
NULL);
|
||||
gs_plugin_loader_job_process_async (self->plugin_loader, plugin_job,
|
||||
self->search_cancellable,
|
||||
--
|
||||
2.23.0
|
||||
|
@ -14,13 +14,16 @@
|
||||
|
||||
Name: gnome-software
|
||||
Version: 3.34.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A software center for GNOME
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://wiki.gnome.org/Apps/Software
|
||||
Source0: https://download.gnome.org/sources/gnome-software/3.34/%{name}-%{version}.tar.xz
|
||||
|
||||
# Backported from upstream
|
||||
Patch0: 0001-extras-Fix-third-party-repo-enabling-not-working.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gettext
|
||||
BuildRequires: libxslt
|
||||
@ -223,6 +226,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
|
||||
%{_mandir}/man1/gnome-software-editor.1*
|
||||
|
||||
%changelog
|
||||
* Wed Sep 25 2019 Kalev Lember <klember@redhat.com> - 3.34.0-2
|
||||
- Fix third party repo enabling not working (#1749566)
|
||||
|
||||
* Mon Sep 09 2019 Kalev Lember <klember@redhat.com> - 3.34.0-1
|
||||
- Update to 3.34.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user