commit plasma5-pk-updates for openSUSE:Leap:15.2

2020-05-12 Thread root
Hello community,

here is the log from the commit of package plasma5-pk-updates for 
openSUSE:Leap:15.2 checked in at 2020-05-12 11:36:25

Comparing /work/SRC/openSUSE:Leap:15.2/plasma5-pk-updates (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.plasma5-pk-updates.new.2738 (New)


Package is "plasma5-pk-updates"

Tue May 12 11:36:25 2020 rev:58 rq:798284 version:0.3.2

Changes:

--- /work/SRC/openSUSE:Leap:15.2/plasma5-pk-updates/plasma5-pk-updates.changes  
2020-02-27 06:41:15.597579190 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.plasma5-pk-updates.new.2738/plasma5-pk-updates.changes
2020-05-12 11:36:25.680252004 +0200
@@ -1,0 +2,13 @@
+Thu Apr 23 09:58:43 UTC 2020 - Fabian Vogt 
+
+- Fix 0001-Limit-to-one-automatic-check-each-10-minutes.patch
+  to handle msecs properly
+
+---
+Fri Apr 17 14:09:14 UTC 2020 - Fabian Vogt 
+
+- Add patch to make avoiding error messages more effective (boo#1156387):
+  * 0001-Limit-to-one-automatic-check-each-10-minutes.patch
+  * 0001-Also-treat-ErrorNotAuthorized-as-temporary.patch
+
+---

New:

  0001-Also-treat-ErrorNotAuthorized-as-temporary.patch
  0001-Limit-to-one-automatic-check-each-10-minutes.patch



Other differences:
--
++ plasma5-pk-updates.spec ++
--- /var/tmp/diff_new_pack.TRqQpN/_old  2020-05-12 11:36:26.144252979 +0200
+++ /var/tmp/diff_new_pack.TRqQpN/_new  2020-05-12 11:36:26.144252979 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package plasma5-pk-updates
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 Summary:Software Update Manager for Plasma
 License:GPL-3.0-or-later
 Group:  System/Packages
-Url:https://www.kde.org/
+URL:https://www.kde.org/
 Source: 
https://download.kde.org/stable/plasma-pk-updates/%{version}/plasma-pk-updates-%{version}.tar.xz
 # Updated translations
 Source1:plasma5-pk-updates-lang.tar.xz
@@ -42,6 +42,9 @@
 # PATCH-FEATURE-UPSTREAM
 Patch10:0001-Add-support-for-license-prompts.patch
 Patch11:0001-Don-t-show-an-error-for-a-failed-automatic-refresh.patch
+# To be sent upstream if confirmed to work as expected
+Patch12:0001-Limit-to-one-automatic-check-each-10-minutes.patch
+Patch13:0001-Also-treat-ErrorNotAuthorized-as-temporary.patch
 BuildRequires:  PackageKit-Qt5-devel
 BuildRequires:  cmake >= 3.0
 BuildRequires:  extra-cmake-modules >= 1.3.0

++ 0001-Also-treat-ErrorNotAuthorized-as-temporary.patch ++
>From 4cf369b6676d92dcfaed48fb3837c98ce6c6f0fa Mon Sep 17 00:00:00 2001
From: Fabian Vogt 
Date: Fri, 17 Apr 2020 16:42:41 +0200
Subject: [PATCH] Also treat ErrorNotAuthorized as temporary

This can happen if updates are checked while it's not the active session.
---
 src/declarative/pkupdates.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/declarative/pkupdates.cpp b/src/declarative/pkupdates.cpp
index 1c958db..857a6a1 100644
--- a/src/declarative/pkupdates.cpp
+++ b/src/declarative/pkupdates.cpp
@@ -490,6 +490,7 @@ void 
PkUpdates::onRefreshErrorCode(PackageKit::Transaction::Error error, const Q
 if(!m_isManualCheck) {
 auto isTransientError = [] (PackageKit::Transaction::Error error) {
 return (error == 
PackageKit::Transaction::ErrorFailedInitialization) ||
+   (error == PackageKit::Transaction::ErrorNotAuthorized) ||
(error == PackageKit::Transaction::ErrorNoNetwork) ||
(error == PackageKit::Transaction::ErrorCannotGetLock);
 };
-- 
2.25.1

++ 0001-Limit-to-one-automatic-check-each-10-minutes.patch ++
>From 2e968cb632acdd1dbadcd0960fc44935c962847f Mon Sep 17 00:00:00 2001
From: Fabian Vogt 
Date: Fri, 17 Apr 2020 16:06:25 +0200
Subject: [PATCH 1/2] Limit to one automatic check each 10 minutes

Otherwise each network or battery change results in a check, which
can be especially annoying if those fail for some reason (e.g. no internet).
---
 src/plasma/contents/ui/main.qml | 8 
 1 file changed, 8 insertions(+)

diff --git a/src/plasma/contents/ui/main.qml b/src/plasma/contents/ui/main.qml
index aaec014..bb87f1b 100644
--- a/src/plasma/contents/ui/main.qml
+++ b/src/plasma/contents/ui/main.qml
@@ -40,6 +40,9 @@ Item
 property bool checkOnMobile: plasmoid.configuration.check_on_mobile
 property bool checkOnBattery: plasmoid.configuration.check_on_battery
 
+property double lastCheckAttempt: 

commit plasma5-pk-updates for openSUSE:Leap:15.2

2020-02-26 Thread root
Hello community,

here is the log from the commit of package plasma5-pk-updates for 
openSUSE:Leap:15.2 checked in at 2020-02-27 06:41:13

Comparing /work/SRC/openSUSE:Leap:15.2/plasma5-pk-updates (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.plasma5-pk-updates.new.26092 (New)


Package is "plasma5-pk-updates"

Thu Feb 27 06:41:13 2020 rev:57 rq:779436 version:0.3.2

Changes:

--- /work/SRC/openSUSE:Leap:15.2/plasma5-pk-updates/plasma5-pk-updates.changes  
2020-01-15 15:44:16.347283387 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.plasma5-pk-updates.new.26092/plasma5-pk-updates.changes
   2020-02-27 06:41:15.597579190 +0100
@@ -1,0 +2,12 @@
+Mon Feb 24 07:55:44 UTC 2020 - Fabian Vogt 
+
+- Add patch to avoid error messages for a locked db (boo#1161501):
+  * 0001-Don-t-show-an-error-for-a-failed-automatic-refresh.patch
+
+---
+Tue Jan 28 15:21:59 UTC 2020 - Wolfgang Bauer 
+
+- Update german translations to remove a superfluous fullstop
+  (kde#386751)
+
+---

New:

  0001-Don-t-show-an-error-for-a-failed-automatic-refresh.patch



Other differences:
--
++ plasma5-pk-updates.spec ++
--- /var/tmp/diff_new_pack.cyahEj/_old  2020-02-27 06:41:15.969579965 +0100
+++ /var/tmp/diff_new_pack.cyahEj/_new  2020-02-27 06:41:15.969579965 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package plasma5-pk-updates
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -41,6 +41,7 @@
 Patch9: 0007-Port-away-from-KDELibs4Support-use-Solid-Power-inter.patch
 # PATCH-FEATURE-UPSTREAM
 Patch10:0001-Add-support-for-license-prompts.patch
+Patch11:0001-Don-t-show-an-error-for-a-failed-automatic-refresh.patch
 BuildRequires:  PackageKit-Qt5-devel
 BuildRequires:  cmake >= 3.0
 BuildRequires:  extra-cmake-modules >= 1.3.0

++ 0001-Don-t-show-an-error-for-a-failed-automatic-refresh.patch ++
>From 4d6cfaea1dd4a44867a6f77bdc8a6d3f0b70a396 Mon Sep 17 00:00:00 2001
From: Fabian Vogt 
Date: Thu, 23 Jan 2020 11:18:58 +0100
Subject: [PATCH] Don't show an error for a failed automatic refresh

Summary:
If it's an automatically triggered refresh, the first time it fails a likely
transient (no network, locking failed, init failed) error is not shown.

Test Plan:
Started zypper in the background, which locks the database.
Reset the timestamp to 0 and started the applet in plasmawindowed.
The first autorefresh error wasn't displayed, but the subsequent ones were.
After quitting zypper it refreshed successfully and the count was reset.

Reviewers: bruns, antlarr

Differential Revision: https://phabricator.kde.org/D27423
---
 src/declarative/pkupdates.cpp   | 42 +
 src/declarative/pkupdates.h |  7 +-
 src/plasma/contents/ui/Full.qml |  2 +-
 src/plasma/contents/ui/main.qml |  2 +-
 4 files changed, 45 insertions(+), 8 deletions(-)

diff --git a/src/declarative/pkupdates.cpp b/src/declarative/pkupdates.cpp
index 401c887..1c958db 100644
--- a/src/declarative/pkupdates.cpp
+++ b/src/declarative/pkupdates.cpp
@@ -197,7 +197,7 @@ void PkUpdates::doDelayedCheckUpdates()
 {
 qCDebug(PLASMA_PK_UPDATES) << "CheckUpdates was delayed. Doing it now";
 m_checkUpdatesWhenNetworkOnline = false;
-checkUpdates();
+checkUpdates(true /* force */, m_isManualCheck /* manual */);
 }
 }
 
@@ -230,8 +230,10 @@ QString PkUpdates::timestamp() const
 return i18n("Last check: never");
 }
 
-void PkUpdates::checkUpdates(bool force)
+void PkUpdates::checkUpdates(bool force, bool manual)
 {
+m_isManualCheck = manual;
+
 if (!isNetworkOnline())
 {
 qCDebug(PLASMA_PK_UPDATES) << "Checking updates delayed. Network is 
offline";
@@ -247,7 +249,7 @@ void PkUpdates::checkUpdates(bool force)
 // evaluate the result
 connect(m_cacheTrans.data(), ::Transaction::statusChanged, 
this, ::onStatusChanged);
 connect(m_cacheTrans.data(), ::Transaction::finished, this, 
::onFinished);
-connect(m_cacheTrans.data(), ::Transaction::errorCode, this, 
::onErrorCode);
+connect(m_cacheTrans.data(), ::Transaction::errorCode, this, 
::onRefreshErrorCode);
 connect(m_cacheTrans.data(), ::Transaction::requireRestart, 
this, ::onRequireRestart);
 connect(m_cacheTrans.data(), 
::Transaction::repoSignatureRequired, this, 
::onRepoSignatureRequired);
 }
@@ -397,6 +399,7 @@ void PkUpdates::onFinished(PackageKit::Transaction::Exit 
status, uint runtime)