Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Lachu:SystemServices
PackageKit
n-0010-dnf-backend-Read-update-information-also...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File n-0010-dnf-backend-Read-update-information-also-when-gettin.patch of Package PackageKit
From dadea5f987d7f86baff9abf42f9462d7f76a0e0e Mon Sep 17 00:00:00 2001 From: Milan Crha <mcrha@redhat.com> Date: Thu, 13 May 2021 17:00:30 +0200 Subject: [PATCH 010/102] dnf-backend: Read update information also when getting list of updates The GET_UPDATES job checks related advisories for the packages, but these are available only if the update information is downloaded by the libdnf, thus ask for it for this job too. diff --git a/backends/dnf/pk-backend-dnf.c b/backends/dnf/pk-backend-dnf.c index 05f354afe..688ec3d31 100644 --- a/backends/dnf/pk-backend-dnf.c +++ b/backends/dnf/pk-backend-dnf.c @@ -663,7 +663,8 @@ dnf_utils_create_sack_for_filters (PkBackendJob *job, flags |= DNF_SACK_ADD_FLAG_REMOTE; /* only load updateinfo when required */ - if (pk_backend_job_get_role (job) == PK_ROLE_ENUM_GET_UPDATE_DETAIL) + if (pk_backend_job_get_role (job) == PK_ROLE_ENUM_GET_UPDATE_DETAIL || + pk_backend_job_get_role (job) == PK_ROLE_ENUM_GET_UPDATES) flags |= DNF_SACK_ADD_FLAG_UPDATEINFO; /* only use unavailble packages for queries */ -- 2.35.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor