public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/PackageKit] f44: Backport fix for offline-updates cache handling
@ 2026-11-11 17:42 Neal Gompa
0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-11-11 17:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/PackageKit
Branch : f44
Commit : 4292ab2d2c98c885ea2f6aa96e3f088b89249f7a
Author : Neal Gompa <ngompa@fedoraproject.org>
Date : 2026-11-11T12:41:53-05:00
Stats : +39/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/PackageKit/c/4292ab2d2c98c885ea2f6aa96e3f088b89249f7a?branch=f44
Log:
Backport fix for offline-updates cache handling
---
diff --git a/1038.patch b/1038.patch
new file mode 100644
index 0000000..5fd3b3b
--- /dev/null
+++ b/1038.patch
@@ -0,0 +1,37 @@
+From 8e2ce0e173089f18bee885c76e4da1439e2efff3 Mon Sep 17 00:00:00 2001
+From: Gordon Messmer <gmessmer@redhat.com>
+Date: Tue, 3 Nov 2026 22:05:21 +0000
+Subject: [PATCH] dnf5: Keep cache-only mode for offline upgrades
+
+Reuse the transaction's detected network state when rebuilding the
+base for the target release. This prevents offline system upgrades
+from attempting to refresh repository metadata.
+---
+ backends/dnf5/dnf5-backend-thread.cpp | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/backends/dnf5/dnf5-backend-thread.cpp b/backends/dnf5/dnf5-backend-thread.cpp
+index 9058d97b6..81e9724b0 100644
+--- a/backends/dnf5/dnf5-backend-thread.cpp
++++ b/backends/dnf5/dnf5-backend-thread.cpp
+@@ -435,9 +435,10 @@ dnf5_transaction_thread(PkBackendJob *job, GVariant *params, gpointer user_data)
+ PkRoleEnum role = pk_backend_job_get_role(job);
+
+ g_autoptr(GMutexLocker) locker = g_mutex_locker_new(&priv->mutex);
++ gboolean online = pk_backend_is_online(backend);
+
+ // Update cache-only mode based on current network state
+- dnf5_update_network_state(priv, pk_backend_is_online(backend));
++ dnf5_update_network_state(priv, online);
+
+ try {
+ if (role == PK_ROLE_ENUM_UPGRADE_SYSTEM) {
+@@ -447,7 +448,7 @@ dnf5_transaction_thread(PkBackendJob *job, GVariant *params, gpointer user_data)
+ g_variant_get(params, "(t&su)", &transaction_flags, &distro_id, &upgrade_kind);
+ if (distro_id) {
+ pk_backend_job_set_status(job, PK_STATUS_ENUM_REFRESH_CACHE);
+- dnf5_setup_base(priv, TRUE, TRUE, distro_id, TRUE, job);
++ dnf5_setup_base(priv, TRUE, TRUE, distro_id, online, job);
+
+ g_debug("Checking repositories for system upgrade to %s:", distro_id);
+ // ... logging code ...
diff --git a/PackageKit.spec b/PackageKit.spec
index c4654b0..2dc1a37 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -15,6 +15,8 @@ Source0: http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{ver
Patch0001: https://github.com/PackageKit/PackageKit/pull/1014.patch
## Fix various progress reporting issues
Patch0002: https://github.com/PackageKit/PackageKit/pull/1028.patch
+## Fix for offline-updates
+Patch0003: https://github.com/PackageKit/PackageKit/pull/1038.patch
# Patches proposed upstream (501~1000)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-11 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 17:42 [rpms/PackageKit] f44: Backport fix for offline-updates cache handling Neal Gompa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox