Accepting request 261734 from home:Ledest:bashisms

fix bashism in btrfsmaintenance-refresh-cron.sh script

OBS-URL: https://build.opensuse.org/request/show/261734
OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsmaintenance?expand=0&rev=7
This commit is contained in:
David Sterba 2014-11-18 09:22:35 +00:00 committed by Git OBS Bridge
parent 26330aa268
commit 7920979859
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -Ndur btrfsmaintenance-0.1/btrfsmaintenance-refresh-cron.sh btrfsmaintenance-0.1-fix-bashisms/btrfsmaintenance-refresh-cron.sh
--- btrfsmaintenance-0.1/btrfsmaintenance-refresh-cron.sh 2014-10-29 18:36:45.000000000 +0200
+++ btrfsmaintenance-0.1-fix-bashisms/btrfsmaintenance-refresh-cron.sh 2014-11-15 06:52:30.882955935 +0200
@@ -31,7 +31,7 @@
. /etc/sysconfig/btrfsmaintenance
fi
-function refresh_period() {
+refresh_period() {
EXPECTED="$1"
SCRIPT="$2"
echo "Refresh script $SCRIPT for $EXPECTED"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Nov 15 04:55:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in btrfsmaintenance-refresh-cron.sh script
- add patches:
* btrfsmaintenance-0.1-fix-bashisms.patch
-------------------------------------------------------------------
Wed Oct 29 00:00:00 CET 2014 - dsterba@suse.cz

View File

@ -24,6 +24,7 @@ License: GPL-2.0
Group: System/Base
Url: https://github.com/kdave/btrfsmaintenance
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-0.1-fix-bashisms.patch
Requires: zypp-plugin-python
Requires: libzypp(plugin:commit)
Recommends: cron
@ -41,6 +42,7 @@ on selected mountpoints or directories.
%prep
%setup -q
%patch0 -p1
%build