diff --git a/discover-6.0.3-pk-refresh-timer-12h.patch b/discover-6.0.3-pk-refresh-timer-12h.patch new file mode 100644 index 0000000..f9825b0 --- /dev/null +++ b/discover-6.0.3-pk-refresh-timer-12h.patch @@ -0,0 +1,13 @@ +diff --git a/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp b/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp +index ca3afb51e..e887cdb95 100644 +--- a/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp ++++ b/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp +@@ -61,7 +61,7 @@ PackageKitNotifier::PackageKitNotifier(QObject *parent) + bool ok; + const int days = value.toInt(&ok); + if (!ok || days == 0) { +- regularCheck->setInterval(24h); // refresh at least once every day ++ regularCheck->setInterval(12h); // refresh at least once every day + regularCheck->start(); + if (!value.isEmpty()) + qWarning() << "couldn't understand value for timer:" << value; diff --git a/discover.spec b/discover.spec index d947e3b..eae4d1a 100644 --- a/discover.spec +++ b/discover.spec @@ -2,7 +2,7 @@ Name: discover Version: 6.0.3 -Release: 2mamba +Release: 3mamba Summary: KDE Plasma application installer Group: Graphical Desktop/Applications/Administration Vendor: openmamba @@ -11,6 +11,7 @@ Packager: Silvan Calarco URL: https://kde.org/it/plasma-desktop/ Source: https://download.kde.org/%{stable_kf6}/plasma/%{plasmaver}/discover-%{version}.tar.xz Patch0: discover-5.93.0-KNSCore-build-fix.patch +Patch1: discover-6.0.3-pk-refresh-timer-12h.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -85,6 +86,7 @@ Notifier for the KDE Frameworks application installer. %prep %setup -q +%patch 1 -p1 -b .pk-refresh-timer-12h %build %cmake_kf6 @@ -147,6 +149,9 @@ Notifier for the KDE Frameworks application installer. %{_datadir}/knotifications6/discoverabstractnotifier.notifyrc %changelog +* Sun Apr 07 2024 Silvan Calarco 6.0.3-3mamba +- add a patch to set 12h instead of 24h for daily refresh + * Tue Apr 02 2024 Silvan Calarco 6.0.3-2mamba - discover-notifier: obsolete plasma-pk-updates - re-enable build of snap backend