Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2017-12-09 20:26:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and      /work/SRC/openSUSE:Factory/.PackageKit.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "PackageKit"

Sat Dec  9 20:26:07 2017 rev:168 rq:555203 version:1.1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes    2017-11-30 
16:32:06.505655547 +0100
+++ /work/SRC/openSUSE:Factory/.PackageKit.new/PackageKit.changes       
2017-12-09 20:26:10.165317370 +0100
@@ -1,0 +2,8 @@
+Wed Dec  6 12:48:41 UTC 2017 - [email protected]
+
+- Add PackageKit-cron-without-sleep.patch: Do not sleep while
+  running scripts called by cron. openSUSE's run-crons has
+  sufficient logic to not have all machines start at the same time
+  (boo#1071521).
+
+-------------------------------------------------------------------

New:
----
  PackageKit-cron-without-sleep.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ PackageKit.spec ++++++
--- /var/tmp/diff_new_pack.Wiilbf/_old  2017-12-09 20:26:11.005277361 +0100
+++ /var/tmp/diff_new_pack.Wiilbf/_new  2017-12-09 20:26:11.009277171 +0100
@@ -41,6 +41,8 @@
 Patch1:         PackageKit-zypp-backend-improve-refresh-cache.patch
 # PATCH-FIX-UPSTREAM PK-zypp-return-error-invalid-package-ids.patch bsc#981011 
[email protected] -- zypp: Return error if invalid package IDs are detected
 Patch2:         PK-zypp-return-error-invalid-package-ids.patch
+# PATCH-FIX-OPENSUSE PackageKit-cron-without-sleep.patch boo#1071521 
[email protected] -- Do not sleep in the cron job; our cron mechansim has 
sufficient randomization
+Patch3:         PackageKit-cron-without-sleep.patch
 BuildRequires:  NetworkManager-devel
 # Needed in order to be able to bootstrap (patch2)
 BuildRequires:  autoconf-archive
@@ -229,6 +231,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 %if !0%{?is_opensuse}
 translation-update-upstream
 %endif


++++++ PackageKit-cron-without-sleep.patch ++++++
Index: PackageKit-1.1.7/contrib/cron/packagekit-background.cron
===================================================================
--- PackageKit-1.1.7.orig/contrib/cron/packagekit-background.cron
+++ PackageKit-1.1.7/contrib/cron/packagekit-background.cron
@@ -28,8 +28,10 @@ else
 fi
 
 # wait a random amount of time to avoid hammering the servers
-[ -z "$SLEEP_MAX" ] && SLEEP_MAX=$RANDOM
-sleep $(( $RANDOM % $SLEEP_MAX + 1 ))
+# code disabled on openSUSE - cron.daily is not executed at a specific time of 
the day
+# https://bugzilla.opensuse.org/1071521
+#[ -z "$SLEEP_MAX" ] && SLEEP_MAX=$RANDOM
+#sleep $(( $RANDOM % $SLEEP_MAX + 1 ))
 
 # do action
 if [ "$CHECK_ONLY" = "yes" ]; then


Reply via email to