[FE training-materials-updates] android: use -c option for repo sync

Maxime Ripard maxime.ripard at free-electrons.com
Thu Aug 22 14:48:45 CEST 2013


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=dbf9a3edee9b2686a36056476f693635bc10ca3f

>---------------------------------------------------------------

commit dbf9a3edee9b2686a36056476f693635bc10ca3f
Author: Maxime Ripard <maxime.ripard at free-electrons.com>
Date:   Thu Aug 22 12:47:29 2013 +0200

    android: use -c option for repo sync
    
    Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>


>---------------------------------------------------------------

dbf9a3edee9b2686a36056476f693635bc10ca3f
 labs/android-new-board/android-new-board.tex     |    2 +-
 labs/android-source-code/android-source-code.tex |    7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/labs/android-new-board/android-new-board.tex b/labs/android-new-board/android-new-board.tex
index e2e0b69..718431f 100644
--- a/labs/android-new-board/android-new-board.tex
+++ b/labs/android-new-board/android-new-board.tex
@@ -72,7 +72,7 @@ optimized versions.
 
 Now, let's run the big download job:
 \begin{verbatim}
-repo sync -j4
+repo sync -c -j4
 \end{verbatim}
 
 In the mean time, you should also download and extract the associated
diff --git a/labs/android-source-code/android-source-code.tex b/labs/android-source-code/android-source-code.tex
index 528e27a..4e51dae 100644
--- a/labs/android-source-code/android-source-code.tex
+++ b/labs/android-source-code/android-source-code.tex
@@ -47,15 +47,18 @@ mkdir android
 cd android
 repo init -u https://android.googlesource.com/platform/manifest \
      -b android-2.3.7_r1
-repo sync -j2
+repo sync -c -j2
 \end{verbatim}
 
-\code{repo sync} will synchronize the files for all the source
+\code{repo sync -c} will synchronize the files for all the source
 repositories listed in the manifest. If you have a slow connection to
 the Internet, this could even take a few hours to
 complete. Fortunately, your instructor will take advantage of this
 waiting time to continue with the lectures.
 
+The \code{-c} option makes it download only the branch we will be
+using, speeding up the download.
+
 We are using the \code{-jX} option of \code{repo sync} to have \code{X}
 downloads in parallel. Otherwise, if the source repositories are fetched
 sequencially, a lot of time and available network bandwidth is wasted



More information about the training-materials-updates mailing list