Merge lp:~james-w/linaro-image-tools/fix-device-quoting into lp:linaro-image-tools/11.11

Proposed by James Westby
Status: Merged
Merge reported by: James Westby
Merged at revision: not available
Proposed branch: lp:~james-w/linaro-image-tools/fix-device-quoting
Merge into: lp:linaro-image-tools/11.11
Diff against target: 33 lines (+6/-2)
2 files modified
debian/changelog (+4/-0)
linaro-media-create (+2/-2)
To merge this branch: bzr merge lp:~james-w/linaro-image-tools/fix-device-quoting
Reviewer Review Type Date Requested Status
Loïc Minier (community) Disapprove
Review via email: mp+34810@code.launchpad.net

Description of the change

Hi,

Here's a patch from Matt Domsch by email to fix an instance of improper
quoting that prevent him from using the tool.

Thanks,

James

To post a comment you must log in.
58. By James Westby

Merge trunk.

Revision history for this message
Loïc Minier (lool) wrote :

Hey

Sorry, I have already committed that patch in trunk

Thanks,

review: Disapprove

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-09-07 08:56:14 +0000
+++ debian/changelog 2010-09-07 21:52:42 +0000
@@ -13,6 +13,10 @@
13 uuidgen-runtime and do not depend on util-linux, e2fsprogs and coreutils13 uuidgen-runtime and do not depend on util-linux, e2fsprogs and coreutils
14 as these are Essential: yes; thanks Colin Watson.14 as these are Essential: yes; thanks Colin Watson.
1515
16 [ Matt Domsch ]
17 * Fix an instance of underquoting which caused problems on systems
18 with odd filenames in /dev/disk/by-id/.
19
16 -- Loïc Minier <loic.minier@linaro.org> Sun, 05 Sep 2010 10:26:20 +020020 -- Loïc Minier <loic.minier@linaro.org> Sun, 05 Sep 2010 10:26:20 +0200
1721
18linaro-image-tools (0.1) maverick; urgency=low22linaro-image-tools (0.1) maverick; urgency=low
1923
=== modified file 'linaro-media-create'
--- linaro-media-create 2010-09-07 21:38:12 +0000
+++ linaro-media-create 2010-09-07 21:52:42 +0000
@@ -56,12 +56,12 @@
56get_mmcs_by_id() {56get_mmcs_by_id() {
57if [ ! ${IMAGE_FILE} ]; then57if [ ! ${IMAGE_FILE} ]; then
58 for device in /dev/disk/by-id/*; do58 for device in /dev/disk/by-id/*; do
59 if [ `realpath $device` = $MMC ]; then59 if [ `realpath "$device"` = $MMC ]; then
60 if echo "$device" | grep -q -- "-part[0-9]*$"; then60 if echo "$device" | grep -q -- "-part[0-9]*$"; then
61 echo "device $MMC must not be a partition part ($device)" 1>&261 echo "device $MMC must not be a partition part ($device)" 1>&2
62 exit 162 exit 1
63 fi63 fi
64 for part_id in `ls "$device-part"*`; do64 for part_id in `ls "$device"-part*`; do
65 part=`realpath $part_id`65 part=`realpath $part_id`
66 part_no=`echo $part_id | sed -e 's/.*-part//g'`66 part_no=`echo $part_id | sed -e 's/.*-part//g'`
67 # echo "part $part_no found: $part_id" 1>&267 # echo "part $part_no found: $part_id" 1>&2

Subscribers

People subscribed via source and target branches