only one remaining patch to upstream source for now
authorBdale Garbee <bdale@gag.com>
Fri, 10 Jun 2011 17:15:40 +0000 (11:15 -0600)
committerBdale Garbee <bdale@gag.com>
Fri, 10 Jun 2011 17:15:40 +0000 (11:15 -0600)
debian/patches/bashism_in_examples [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/bashism_in_examples b/debian/patches/bashism_in_examples
new file mode 100644 (file)
index 0000000..7fcd6c1
--- /dev/null
@@ -0,0 +1,26 @@
+Description: fix bashisms in dump_disk example script
+ Three conditionals in the examples/dump_on_cd_3/dump_disk are fixed to
+ avoid bash-specific syntax.
+Author: Bdale Garbee <bdale@gag.com>
+Bug-Debian: http://bugs.debian.org/489570
+
+--- dump-0.4b44.orig/examples/dump_on_cd_3/dump_disk
++++ dump-0.4b44/examples/dump_on_cd_3/dump_disk
+@@ -55,14 +55,14 @@ write_output() {
+       while [ "$ANSWER" != "y" ] ; do
+               echo -n "Is the disk ready? (y/n) "
+               read  </dev/tty ANSWER
+-              if [ "$ANSWER" == "y" ] ; then
++              if [ "$ANSWER" = "y" ] ; then
+                       (${RECORD_BIN}${1}) &
+                       return 0
+-              elif [ "$ANSWER" == "n" ] ; then
++              elif [ "$ANSWER" = "n" ] ; then
+                       EXIT=""
+                       echo -n "Do you really want to exit? (y/n) "
+                       read </dev/tty EXIT
+-                      if [ "$EXIT" == "y" ] ; then
++                      if [ "$EXIT" = "y" ] ; then
+                               return 1
+                       fi
+               fi
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..ed1a2ff
--- /dev/null
@@ -0,0 +1 @@
+bashism_in_examples