From 9367eebb9b4b2011917cbe158848e95e0f148dbd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:15:52 +0100 Subject: [PATCH] patched to disable network online check to workaround issue since NetworkManager 1.32 [release 0.3.2.20200829git-3mamba;Sat Jul 10 2021] --- ...t-workaround-disable-network-online-check.patch | 14 ++++++++++++++ plasma-pk-updates.spec | 13 ++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 plasma-pk-updates-0.3.2.20200829git-workaround-disable-network-online-check.patch diff --git a/plasma-pk-updates-0.3.2.20200829git-workaround-disable-network-online-check.patch b/plasma-pk-updates-0.3.2.20200829git-workaround-disable-network-online-check.patch new file mode 100644 index 0000000..9c2cf97 --- /dev/null +++ b/plasma-pk-updates-0.3.2.20200829git-workaround-disable-network-online-check.patch @@ -0,0 +1,14 @@ +--- plasma-pk-updates-0.3.2.20200829git/src/declarative/pkupdates.cpp.orig 2021-07-10 17:48:41.480399222 +0200 ++++ plasma-pk-updates-0.3.2.20200829git/src/declarative/pkupdates.cpp 2021-07-10 17:49:14.574988259 +0200 +@@ -172,8 +172,9 @@ + + bool PkUpdates::isNetworkOnline() const + { +- qCDebug(PLASMA_PK_UPDATES) << "Is net online:" << (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline); +- return (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline); ++ qCDebug(PLASMA_PK_UPDATES) << "Is net online (ignoring):" << (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline); ++ //return (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline); ++ return true; + } + + void PkUpdates::doDelayedCheckUpdates() diff --git a/plasma-pk-updates.spec b/plasma-pk-updates.spec index 85e7a59..c2cf1d9 100644 --- a/plasma-pk-updates.spec +++ b/plasma-pk-updates.spec @@ -2,17 +2,17 @@ Name: plasma-pk-updates Version: 0.3.2.20200829git -Release: 2mamba +Release: 3mamba Summary: Plasma applet for software updates using PackageKit Group: Graphical Desktop/Applications/Administration Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://devhub.io/zh/repos/caybro-plasma-pk-updates -#Source: https://download.kde.org/stable/plasma-pk-updates/%{version}/plasma-pk-updates-%{version}.tar.xz +URL: https://invent.kde.org/system/plasma-pk-updates Source: https://anongit.kde.org/plasma-pk-updates.git/master/plasma-pk-updates-%{version}.tar.bz2 -# Source: http://download.kde.org/stable/frameworks/%{majver}/...-%{version}.tar.xz +#Source: https://download.kde.org/stable/plasma-pk-updates/%{version}/plasma-pk-updates-%{version}.tar.xz Patch0: plasma-pk-updates-0.3.2.20190908git-kde4libssupport.patch +Patch1: plasma-pk-updates-0.3.2.20200829git-workaround-disable-network-online-check.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -49,7 +49,6 @@ BuildRequires: libstdc++6-devel BuildRequires: cmake BuildRequires: rpm-macros-kde5 BuildRequires: extra-cmake-modules -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Plasma applet for software updates using PackageKit. @@ -59,6 +58,7 @@ Plasma applet for software updates using PackageKit. %prep %setup -q %patch0 -p1 -R +%patch1 -p1 # Get translations for l in ca ca@valencia cs da de en_GB es fi fr gl he it ja lt nl nn pl pt pt_BR ru sk sv tr uk zh_CN zh_TW; do @@ -101,6 +101,9 @@ _EOF %doc LICENSE %changelog +* Sat Jul 10 2021 Silvan Calarco 0.3.2.20200829git-3mamba +- patched to disable network online check to workaround issue since NetworkManager 1.32 + * Thu Sep 10 2020 Silvan Calarco 0.3.2.20200829git-2mamba - added translations from anonsvn.kde.org