automatic version update by autodist [release 6.2.3-1mamba;Wed Nov 06 2024]

This commit is contained in:
Automatic Build System 2024-11-08 13:35:47 +01:00
parent 7ef5dd6184
commit 7cc1038768
2 changed files with 4 additions and 66 deletions

View File

@ -1,62 +0,0 @@
From 554e9b6b2f7317ca431691e887dc6ffda5b7deb5 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Fri, 4 Oct 2024 15:45:46 +0100
Subject: [PATCH] FwupdBackend: Do not use more API now removed in fwupd 2.0.0
---
libdiscover/backends/FwupdBackend/FwupdResource.cpp | 1 -
libdiscover/backends/FwupdBackend/FwupdResource.h | 6 ------
libdiscover/backends/FwupdBackend/FwupdTransaction.cpp | 4 ----
3 files changed, 11 deletions(-)
diff --git a/libdiscover/backends/FwupdBackend/FwupdResource.cpp b/libdiscover/backends/FwupdBackend/FwupdResource.cpp
index 7c18a7d56..daf2bf5ae 100644
--- a/libdiscover/backends/FwupdBackend/FwupdResource.cpp
+++ b/libdiscover/backends/FwupdBackend/FwupdResource.cpp
@@ -173,7 +173,6 @@ void FwupdResource::setReleaseDetails(FwupdRelease *release)
void FwupdResource::setDeviceDetails(FwupdDevice *dev)
{
m_isLiveUpdatable = fwupd_device_has_flag(dev, FWUPD_DEVICE_FLAG_UPDATABLE);
- m_isOnlyOffline = fwupd_device_has_flag(dev, FWUPD_DEVICE_FLAG_ONLY_OFFLINE);
m_needsReboot = fwupd_device_has_flag(dev, FWUPD_DEVICE_FLAG_NEEDS_REBOOT);
if (fwupd_device_get_name(dev)) {
diff --git a/libdiscover/backends/FwupdBackend/FwupdResource.h b/libdiscover/backends/FwupdBackend/FwupdResource.h
index a75f6ab89..c3230303a 100644
--- a/libdiscover/backends/FwupdBackend/FwupdResource.h
+++ b/libdiscover/backends/FwupdBackend/FwupdResource.h
@@ -102,11 +102,6 @@ class FwupdResource : public AbstractResource
return m_isDeviceLocked;
}
- bool isOnlyOffline() const
- {
- return m_isOnlyOffline;
- }
-
bool isLiveUpdatable() const
{
return m_isLiveUpdatable;
@@ -146,7 +141,6 @@ class FwupdResource : public AbstractResource
QString m_updateURI;
bool m_isDeviceLocked = false; // True if device is locked!
- bool m_isOnlyOffline = false; // True if only offline updates
bool m_isLiveUpdatable = false; // True if device is live updatable
bool m_needsReboot = false; // True if device needs Reboot
QString m_origin;
diff --git a/libdiscover/backends/FwupdBackend/FwupdTransaction.cpp b/libdiscover/backends/FwupdBackend/FwupdTransaction.cpp
index f20b9ab58..44232f18d 100644
--- a/libdiscover/backends/FwupdBackend/FwupdTransaction.cpp
+++ b/libdiscover/backends/FwupdBackend/FwupdTransaction.cpp
@@ -83,10 +83,6 @@ void FwupdTransaction::fwupdInstall(const QString &file)
FwupdInstallFlags install_flags = FWUPD_INSTALL_FLAG_NONE;
g_autoptr(GError) error = nullptr;
- /* only offline supported */
- if (m_app->isOnlyOffline())
- install_flags = static_cast<FwupdInstallFlags>(install_flags | FWUPD_INSTALL_FLAG_OFFLINE);
-
if (!fwupd_client_install(m_backend->client, m_app->deviceId().toUtf8().constData(), file.toUtf8().constData(), install_flags, nullptr, &error)) {
m_backend->handleError(error);
setStatus(DoneWithErrorStatus);

View File

@ -1,7 +1,7 @@
%define plasmaver %(echo %version | cut -d. -f1-3) %define plasmaver %(echo %version | cut -d. -f1-3)
Name: discover Name: discover
Version: 6.2.2 Version: 6.2.3
Release: 1mamba Release: 1mamba
Summary: KDE Plasma application installer Summary: KDE Plasma application installer
Group: Graphical Desktop/Applications/Administration Group: Graphical Desktop/Applications/Administration
@ -12,9 +12,7 @@ URL: https://kde.org/it/plasma-desktop/
Source: https://download.kde.org/%{stable_kf6}/plasma/%{plasmaver}/discover-%{version}.tar.xz Source: https://download.kde.org/%{stable_kf6}/plasma/%{plasmaver}/discover-%{version}.tar.xz
Patch0: discover-6.0.3-pk-refresh-timer-12h.patch Patch0: discover-6.0.3-pk-refresh-timer-12h.patch
Patch1: discover-6.0.3-pk-force-refresh-cache.patch Patch1: discover-6.0.3-pk-force-refresh-cache.patch
Patch2: discover-6.2.0-fwupd-2.0.1.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libQt6Concurrent BuildRequires: libQt6Concurrent
@ -104,7 +102,6 @@ Notifier for the KDE Frameworks application installer.
%prep %prep
%setup -q %setup -q
%patch 1 -p1 %patch 1 -p1
%patch 2 -p1 -b .fwupd-2.0.1
%build %build
%cmake_kf6 %cmake_kf6
@ -167,6 +164,9 @@ Notifier for the KDE Frameworks application installer.
%{_datadir}/knotifications6/discoverabstractnotifier.notifyrc %{_datadir}/knotifications6/discoverabstractnotifier.notifyrc
%changelog %changelog
* Wed Nov 06 2024 Automatic Build System <autodist@openmamba.org> 6.2.3-1mamba
- automatic version update by autodist
* Wed Oct 23 2024 Automatic Build System <autodist@openmamba.org> 6.2.2-1mamba * Wed Oct 23 2024 Automatic Build System <autodist@openmamba.org> 6.2.2-1mamba
- automatic version update by autodist - automatic version update by autodist