Hello community,

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

Package is "btrfsmaintenance"

Fri Dec 22 12:20:58 2017 rev:13 rq:559129 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/btrfsmaintenance/btrfsmaintenance.changes        
2017-12-14 11:00:55.917625730 +0100
+++ /work/SRC/openSUSE:Factory/.btrfsmaintenance.new/btrfsmaintenance.changes   
2017-12-22 12:21:33.447842581 +0100
@@ -1,0 +2,6 @@
+Sun Dec 17 12:18:45 CET 2017 - [email protected]
+
+- Switch default of btrfsmaintenance-refresh.service to systemd-timer, 
+  too (btrfsmaintenance-switch-to-timer.patch) [bsc#1073204]
+
+-------------------------------------------------------------------

New:
----
  btrfsmaintenance-switch-to-timer.patch

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

Other differences:
------------------
++++++ btrfsmaintenance.spec ++++++
--- /var/tmp/diff_new_pack.ggUi0N/_old  2017-12-22 12:21:34.183806696 +0100
+++ /var/tmp/diff_new_pack.ggUi0N/_new  2017-12-22 12:21:34.187806501 +0100
@@ -23,7 +23,7 @@
 
 Name:           btrfsmaintenance
 Version:        0.3.1
-Release:        10.2
+Release:        0
 Summary:        Scripts for btrfs periodic maintenance tasks
 License:        GPL-2.0
 Group:          System/Base
@@ -32,6 +32,7 @@
 # PATCH-FIX-OPENSUSE btrfsmaintenance-0.3.1-fix-rpm-db-path.patch -- Fix RPM 
database path for Tumbleweed
 Patch0:         btrfsmaintenance-0.3.1-fix-rpm-db-path.patch
 Patch1:         pull-request-36.patch
+Patch2:         btrfsmaintenance-switch-to-timer.patch
 Requires:       zypp-plugin-python
 Requires:       libzypp(plugin:commit)
 #Recommends:     cron
@@ -54,6 +55,7 @@
 %patch0
 %endif
 %patch1 -p1
+%patch2 -p0
 
 %build
 

++++++ btrfsmaintenance-switch-to-timer.patch ++++++
--- btrfsmaintenance-refresh-cron.sh
+++ btrfsmaintenance-refresh-cron.sh    2017/12/17 11:12:22
@@ -91,6 +91,10 @@
 
 case "$BTRFS_TIMER_IMPLEMENTATION" in
        systemd-timer)
+                # Deinstall cron jobs, don't run it twice.
+                for SCRIPT in btrfs-scrub btrfs-defrag btrfs-balance 
btrfs-trim; do
+                  refresh_cron uninstall ${SCRIPT}.sh
+                done
                refresh_timer "$BTRFS_SCRUB_PERIOD" btrfs-scrub
                refresh_timer "$BTRFS_DEFRAG_PERIOD" btrfs-defrag
                refresh_timer "$BTRFS_BALANCE_PERIOD" btrfs-balance
--- btrfsmaintenance-refresh.service
+++ btrfsmaintenance-refresh.service    2017/12/17 11:04:07
@@ -3,7 +3,7 @@
 After=local-fs.target
 
 [Service]
-ExecStart=/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh
+ExecStart=/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh 
systemd-timer
 Type=oneshot
 
 [Install]

Reply via email to