Merge lp:~gesha/linaro-android-build-tools/update-repo-tool into lp:linaro-android-build-tools

Proposed by Georgy Redkozubov
Status: Merged
Approved by: Milo Casagrande
Approved revision: 677
Merged at revision: 677
Proposed branch: lp:~gesha/linaro-android-build-tools/update-repo-tool
Merge into: lp:linaro-android-build-tools
Diff against target: 27 lines (+10/-0)
1 file modified
node/build (+10/-0)
To merge this branch: bzr merge lp:~gesha/linaro-android-build-tools/update-repo-tool
Reviewer Review Type Date Requested Status
Milo Casagrande (community) Approve
Review via email: mp+189236@code.launchpad.net

Description of the change

This branch adds update of repo tool on slaves during runtime.

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

To me, it sounds good and the changes look good.
Since builds are starting to fail also due to the old version, I do not see why we should be tracking the same stable version as upstream.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'node/build'
2--- node/build 2012-10-09 22:53:49 +0000
3+++ node/build 2013-10-04 09:06:33 +0000
4@@ -12,6 +12,8 @@
5 # $2 = build CONFIG, base64-encoded
6 #
7
8+REPO_TOOL_URL="http://android.git.linaro.org/gitweb?p=tools/repo.git;a=blob_plain;f=repo;hb=refs/heads/stable"
9+
10 # Dump system release to build log
11 echo
12 cat /etc/issue
13@@ -27,6 +29,14 @@
14 EOF
15 }
16
17+function update-repo-tool () {
18+ curl ${REPO_TOOL_URL} > /tmp/repo
19+ chmod a+x /tmp/repo
20+ mv /tmp/repo /usr/local/bin/repo
21+}
22+
23+update-repo-tool
24+
25 BUILD_SCRIPT_ROOT=$(readlink -f "$(dirname "${0}")/../build-scripts")
26 mkdir -p /var/run/build-tools
27 if ! $BUILD_SCRIPT_ROOT/../node/prepare_build_config.py --base64 "$2"; then

Subscribers

People subscribed via source and target branches