The following commit has been merged in the master branch:
commit 0c21f1617933ab35a5b081fe314ca5a864a9962a
Author: Raphaël Hertzog <[email protected]>
Date: Thu Oct 1 23:48:40 2009 +0200
dselect-multicd: fix bashism in setup script
Use printf instead of echo -e. Closes: #530070
diff --git a/debian/changelog b/debian/changelog
index 7c47129..45b2748 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -51,6 +51,7 @@ dpkg (1.15.5) UNRELEASED; urgency=low
method. Closes: #402527
* Integrate dpkg-multicd into dselect. Add the required Replaces and
Conflicts. The dpkg-scanpackages fork is dropped. Closes: #516631
+ * Fix bashisms in dselect multicd access method. Closes: #530070
[ Updated dpkg translations ]
* German (Sven Joachim).
diff --git a/dselect/methods/multicd/setup b/dselect/methods/multicd/setup
index fc0be54..7bcfbe0 100755
--- a/dselect/methods/multicd/setup
+++ b/dselect/methods/multicd/setup
@@ -119,7 +119,7 @@ getblockdev () {
then
blockbase="`echo \"$tryblockdevice\" | sed -e
's/[0-9]\{1,\}$//'`"
set +e
- echo -e "p\nq\n" | fdisk "$blockbase" 2>/dev/null >$tp.f
+ printf 'p\nq\n' | fdisk "$blockbase" 2>/dev/null >$tp.f
set -e
proposeddevice="$tryblockdevice" perl -ne '
next unless /^ *Device +Boot +Begin +Start +End +Blocks +Id +System *$/i ..
!/\S/;
@@ -334,10 +334,10 @@ fi
if [ $option = harddisk2 ]
then
set +e
- echo -e 'p\nq\n' | fdisk /dev/hda 2>/dev/null >$tp.f
+ printf 'p\nq\n' | fdisk /dev/hda 2>/dev/null >$tp.f
if [ $? != 0 ]
then
- echo -e 'p\nq\n' | fdisk /dev/sda 2>/dev/null >$tp.f
+ printf 'p\nq\n' | fdisk /dev/sda 2>/dev/null >$tp.f
fi
set -e
perl -ne '
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]