public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neal Gompa <ngompa@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/PackageKit] f44: Backport fix for offline-updates cache handling
Date: Wed, 11 Nov 2026 17:42:59 GMT	[thread overview]
Message-ID: <179441897987.1.14300916172484271021.rpms-PackageKit-4292ab2d2c98@fedoraproject.org> (raw)

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)
 

                 reply	other threads:[~2026-11-11 17:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179441897987.1.14300916172484271021.rpms-PackageKit-4292ab2d2c98@fedoraproject.org \
    --to=ngompa@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox