Merge lp:~doanac/lava-master-image-scripts/mkdir-for-cache into lp:lava-master-image-scripts

Proposed by Andy Doan
Status: Merged
Merged at revision: 51
Proposed branch: lp:~doanac/lava-master-image-scripts/mkdir-for-cache
Merge into: lp:lava-master-image-scripts
Diff against target: 19 lines (+2/-0)
1 file modified
lava-create-master (+2/-0)
To merge this branch: bzr merge lp:~doanac/lava-master-image-scripts/mkdir-for-cache
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+101437@code.launchpad.net

Description of the change

The new .cache support didn't work for me because the target directories for files we create weren't there. This fixes the issue for me.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava-create-master'
2--- lava-create-master 2012-04-10 12:08:23 +0000
3+++ lava-create-master 2012-04-10 19:40:33 +0000
4@@ -204,6 +204,7 @@
5 # The expected md5 checksum is $3
6 check_md5_or_remove "$1" "$3" && return 0
7 echo " * Downloading $2..."
8+ mkdir -p `dirname $1`
9 if ! wget \
10 --output-document="$1" \
11 --user-agent="lava-create-master ($LAVA_VERSION)" \
12@@ -328,6 +329,7 @@
13 chown_to_user "$CACHE_DIR/image-pieces/$ROOTFS"
14
15 # Use LMC to assemble the image
16+ mkdir -p $CACHE_DIR/pristine-images
17 verbose " * Building vanilla image with linaro-media-create..."
18 if ! linaro-media-create \
19 --dev $LMC_DEV \

Subscribers

People subscribed via source and target branches