Merge lp:~asac/linaro-android-build-tools/mkdir-out-in-repo-sync-from-seed into lp:linaro-android-build-tools

Proposed by Alexander Sack
Status: Merged
Merged at revision: 496
Proposed branch: lp:~asac/linaro-android-build-tools/mkdir-out-in-repo-sync-from-seed
Merge into: lp:linaro-android-build-tools
Diff against target: 11 lines (+1/-0)
1 file modified
build-scripts/helpers (+1/-0)
To merge this branch: bzr merge lp:~asac/linaro-android-build-tools/mkdir-out-in-repo-sync-from-seed
Reviewer Review Type Date Requested Status
Linaro Infrastructure Pending
Review via email: mp+117345@code.launchpad.net

Description of the change

if you set RAMDISK_SIZE=0 you end up with no build/out dir created;

in turn repo-sync-from-seed () -> cp .repo/manifest.xml out/source-manifest.xml fails like:

repo initialized in /mnt/jenkins/workspace/linaro-android_galaxynexus-jb-gcc47-aosp-blob/build
+ cp .repo/manifest.xml out/source-manifest.xml
cp: cannot create regular file `out/source-manifest.xml': No such file or directory
++ infrastructure_error
++ echo 'Caught infrastructure error - finishing build with '\''Not Built'\'' status'
Caught infrastructure error - finishing build with 'Not Built' status
++ exit 123
Build step 'Execute shell and set build status' changed build result to NOT_BUILT
Build step 'Execute shell and set build status' marked build as failure

creating the out/ directory (just like in the -from-mirror variant helper) fixes this.

To post a comment you must log in.
Revision history for this message
Alexander Sack (asac) wrote :

i merged this now as i wanted to make progress on the current android build system problems with JB (see lp:1030883).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build-scripts/helpers'
2--- build-scripts/helpers 2012-05-21 08:10:01 +0000
3+++ build-scripts/helpers 2012-07-30 21:29:20 +0000
4@@ -45,6 +45,7 @@
5 setup-repo-vars
6 time curl --silent --show-error "$REPO_SEED_URL" | gzip -d -c | tar x
7 repo init $REPO_QUIET -u "${MANIFEST_REPO}" -b "${MANIFEST_BRANCH}" -m "${MANIFEST_FILENAME}" $REPO_MIRROR --reference=$PWD/$(basename $REPO_SEED_URL .tar.gz)
8+ mkdir -p out
9 cp .repo/manifest.xml out/source-manifest.xml
10 time repo sync $REPO_QUIET -j$SYNC_JOBS
11 repo manifest -r -o out/pinned-manifest.xml

Subscribers

People subscribed via source and target branches