discover/discover-6.0.3-pk-force-refresh-cache.patch

25 lines
1.7 KiB
Diff

diff -Nru discover-6.0.3/libdiscover/backends/PackageKitBackend.orig/PackageKitBackend.cpp discover-6.0.3/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
--- discover-6.0.3/libdiscover/backends/PackageKitBackend.orig/PackageKitBackend.cpp 2024-03-26 16:01:57.000000000 +0100
+++ discover-6.0.3/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp 2024-04-13 12:11:09.438548905 +0200
@@ -559,7 +559,7 @@
if (!m_refresher) {
acquireFetching(true);
m_updater->clearDistroUpgrade();
- m_refresher = PackageKit::Daemon::refreshCache(false);
+ m_refresher = PackageKit::Daemon::refreshCache(true);
// Limit the cache-age so that we actually download new caches if necessary
m_refresher->setHints(globalHints() << QStringLiteral("cache-age=300" /* 5 minutes */));
diff -Nru discover-6.0.3/libdiscover/backends/PackageKitBackend.orig/PackageKitNotifier.cpp discover-6.0.3/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp
--- discover-6.0.3/libdiscover/backends/PackageKitBackend.orig/PackageKitNotifier.cpp 2024-04-12 12:17:05.311399312 +0200
+++ discover-6.0.3/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp 2024-04-13 12:10:52.479511634 +0200
@@ -293,7 +293,7 @@
}
if (!m_refresher) {
- m_refresher = PackageKit::Daemon::refreshCache(false);
+ m_refresher = PackageKit::Daemon::refreshCache(true);
// Limit the cache-age so that we actually download new caches if necessary
m_refresher->setHints(QStringLiteral("cache-age=300" /* 5 minutes */));
connect(m_refresher.data(), &PackageKit::Transaction::finished, this, &PackageKitNotifier::recheckSystemUpdateNeeded);