[SCM] din/master: Fix bashism in data/m00

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Sat Jun 13 19:26:43 UTC 2015


The following commit has been merged in the master branch:
commit b7cffcfba642e13026f24719c94e9e7f09ad304e
Author: Alessio Treglia <alessio.treglia at smartodds.co.uk>
Date:   Sat Jun 13 20:25:59 2015 +0100

    Fix bashism in data/m00
    
    Closes: #772264
    Thanks: Raphael Geissert for the bug report.

diff --git a/debian/patches/fix-bashism.patch b/debian/patches/fix-bashism.patch
new file mode 100644
index 0000000..4405b44
--- /dev/null
+++ b/debian/patches/fix-bashism.patch
@@ -0,0 +1,18 @@
+Description: Fix bashism in data/m00
+ Replace 'echo' with 'printf' which is more portable and
+ reliable when printing strings with backslashes.
+Author: Alessio Treglia <alessio at debian.org>
+Bug-Debian: https://bugs.debian.org/772264
+Forwarded: jag at dinisnoise.org
+---
+ data/m00 |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- din.orig/data/m00
++++ din/data/m00
+@@ -2,4 +2,4 @@
+ ACCEL=`xset q | grep accel | cut -d' ' -f5 |cut -d'/' -f1`
+ THRESHOLD=`xset q | grep thres | cut -d' ' -f11`
+ xset m 0 0
+-echo "\033[1;30m<<< mouse parameters:`xset q | grep accel` >>> \033[0m"
++printf "\033[1;30m<<< mouse parameters:%s >>> \033[0m\n" "`xset q | grep accel`"
diff --git a/debian/patches/series b/debian/patches/series
index 0cca6d7..ed18214 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,5 @@
 checkdotdin-fix.patch
 fix-data-Makefile.patch
 fix-libircclient-headers.patch
+fix-bashism.patch
+checkdotin-bashism.patch

-- 
din packaging



More information about the pkg-multimedia-commits mailing list