add a patch to set 12h instead of 24h for daily refresh [release 6.0.3-3mamba;Sun Apr 07 2024]

This commit is contained in:
Silvan Calarco 2024-04-09 19:03:33 +02:00
parent 1afe78d8b0
commit 00655f6e3b
2 changed files with 19 additions and 1 deletions

View File

@ -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;

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 6.0.3-3mamba
- add a patch to set 12h instead of 24h for daily refresh
* Tue Apr 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.3-2mamba
- discover-notifier: obsolete plasma-pk-updates
- re-enable build of snap backend