subversion/subversion-1.8.10-fix-bashisms.patch

35 lines
1.3 KiB
Diff

From: Oleksandr Chumachenko <ledest@gmail.com>
Date: Thu Nov 20 19:44:10 2014 UTC
Subject: [PATCH] Remove bashism in mailer.py test suite
References: http://svn.apache.org/viewvc?view=revision&revision=r1640795
Upstream: committed
* mailer/tests/mailer-init.sh
Change echo -e to more portable printf
---
tools/hook-scripts/mailer/tests/mailer-init.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: subversion-1.8.10/tools/hook-scripts/mailer/tests/mailer-init.sh
===================================================================
--- subversion-1.8.10.orig/tools/hook-scripts/mailer/tests/mailer-init.sh 2013-02-25 03:30:54.000000000 +0000
+++ subversion-1.8.10/tools/hook-scripts/mailer/tests/mailer-init.sh 2014-11-20 19:00:52.000000000 +0000
@@ -101,14 +101,14 @@ echo change C6 >> dir6/file4
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"