patched to disable network online check to workaround issue since NetworkManager 1.32 [release 0.3.2.20200829git-3mamba;Sat Jul 10 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 10:15:52 +01:00
parent 82f102f449
commit 9367eebb9b
2 changed files with 22 additions and 5 deletions

View File

@ -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()

View File

@ -2,17 +2,17 @@
Name: plasma-pk-updates Name: plasma-pk-updates
Version: 0.3.2.20200829git Version: 0.3.2.20200829git
Release: 2mamba Release: 3mamba
Summary: Plasma applet for software updates using PackageKit Summary: Plasma applet for software updates using PackageKit
Group: Graphical Desktop/Applications/Administration Group: Graphical Desktop/Applications/Administration
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://devhub.io/zh/repos/caybro-plasma-pk-updates URL: https://invent.kde.org/system/plasma-pk-updates
#Source: https://download.kde.org/stable/plasma-pk-updates/%{version}/plasma-pk-updates-%{version}.tar.xz
Source: https://anongit.kde.org/plasma-pk-updates.git/master/plasma-pk-updates-%{version}.tar.bz2 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 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 License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -49,7 +49,6 @@ BuildRequires: libstdc++6-devel
BuildRequires: cmake BuildRequires: cmake
BuildRequires: rpm-macros-kde5 BuildRequires: rpm-macros-kde5
BuildRequires: extra-cmake-modules BuildRequires: extra-cmake-modules
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Plasma applet for software updates using PackageKit. Plasma applet for software updates using PackageKit.
@ -59,6 +58,7 @@ Plasma applet for software updates using PackageKit.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -R %patch0 -p1 -R
%patch1 -p1
# Get translations # 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 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 %doc LICENSE
%changelog %changelog
* Sat Jul 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20200829git-3mamba
- patched to disable network online check to workaround issue since NetworkManager 1.32
* Thu Sep 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20200829git-2mamba * Thu Sep 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.2.20200829git-2mamba
- added translations from anonsvn.kde.org - added translations from anonsvn.kde.org