Accepting request 262420 from home:Ledest:bashisms

fix bashisms in mailer-init.sh script

OBS-URL: https://build.opensuse.org/request/show/262420
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=187
This commit is contained in:
2014-11-20 18:45:37 +00:00
committed by Git OBS Bridge
parent 1511f2943f
commit 99af2e4da4
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
diff -Ndur subversion-1.8.10/tools/hook-scripts/mailer/tests/mailer-init.sh subversion-1.8.10-fix-bashisms/tools/hook-scripts/mailer/tests/mailer-init.sh
--- subversion-1.8.10/tools/hook-scripts/mailer/tests/mailer-init.sh 2013-02-25 05:30:54.000000000 +0200
+++ subversion-1.8.10-fix-bashisms/tools/hook-scripts/mailer/tests/mailer-init.sh 2014-11-20 02:03:58.000000000 +0200
@@ -101,14 +101,14 @@
svn commit -m "copy dir, then make a change"
# add a binary file and set property to binary value
-echo -e "\x00\x01\x02\x03\x04" > file11
+printf "\x00\x01\x02\x03\x04\n" > file11
svn add file11
svn ps svn:mime-type application/octect-stream file11
svn ps prop2 -F file11 file9
svn commit -m "add binary file"
# change the binary file and set property to non binary value
-echo -e "\x20\x01\x02\x20" > file11
+printf "\x20\x01\x02\x20\n" > file11
svn ps prop2 propval2 file9
svn commit -m "change binary file"

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 20 00:20:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in mailer-init.sh script
- add patches:
* subversion-1.8.10-fix-bashisms.patch
-------------------------------------------------------------------
Sat Nov 1 22:56:00 UTC 2014 - andreas.stieger@gmx.de

View File

@@ -58,6 +58,7 @@ Source43: subversion.svndiff.sh
Source50: subversion.keyring
Source51: https://www.apache.org/dist/subversion/%{name}-%{version}.tar.bz2.asc
Source92: %{name}.rpmlintrc
Patch10: subversion-1.8.10-fix-bashisms.patch
Patch11: subversion.libtool-verbose.patch
Patch20: subversion-swig-perl-install_vendor.patch
Patch23: subversion-swig-perl-Wall.patch
@@ -224,6 +225,7 @@ parameters and keywords for the svn command and other tools.
%prep
%setup -q -n subversion-%{version} -a 4
%patch10 -p1
%patch11 -p1
%patch20 -p1
%patch23 -p1