summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorAlan Orth <alan.orth@gmail.com>2012-09-07 11:44:27 +0300
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:12:02 -0700
commitef363cd1d59b71c51664642c1a4d6b3bb9acb34a (patch)
tree5e213bcbb48a5f0450ae71a9a54ed677fcd59f5c /envsetup.sh
parent5cc45b12d823144e3045e498a837f0b356d6111a (diff)
downloadbuild-ef363cd1d59b71c51664642c1a4d6b3bb9acb34a.zip
build-ef363cd1d59b71c51664642c1a4d6b3bb9acb34a.tar.gz
build-ef363cd1d59b71c51664642c1a4d6b3bb9acb34a.tar.bz2
envsetup.sh: Fix the `reposync` function
It seems ionice can't find `repo` if it's in ~/bin, even if ~/bin is in the user's $PATH. Placing repo into /usr/bin or /usr/local/ bin works, but is undesirable (build instructions from both AOSP and CM tell users to put repo into ~/bin, and repo likes to update itself from time to time). This forces the reposync function to use the full path to the repo binary. Change-Id: I9dc4a3d4ec3f39563e3a84de7321189700079c2e
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh
index c6fae0a..bd22cfa 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1919,7 +1919,7 @@ function reposync() {
repo sync -j 4 "$@"
;;
*)
- schedtool -B -n 1 -e ionice -n 1 repo sync -j 4 "$@"
+ schedtool -B -n 1 -e ionice -n 1 `which repo` sync -j 4 "$@"
;;
esac
}