android-repo-download: Use parallel-job-count instead of hard-coding job
count. * guix/build/android-repo.scm (android-repo-fetch): Use parallel-job-count instead of hard-coding job count.
This commit is contained in:
parent
eb924a97bd
commit
4ff0fed778
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ or a branch. Return #t on success, #f otherwise."
|
||||||
(with-directory-excursion directory
|
(with-directory-excursion directory
|
||||||
(invoke git-repo-command "init" "-u" manifest-url "-b" manifest-revision
|
(invoke git-repo-command "init" "-u" manifest-url "-b" manifest-revision
|
||||||
"--depth=1")
|
"--depth=1")
|
||||||
(invoke git-repo-command "sync" "-c" "--fail-fast" "-v" "-j" "3")
|
(invoke git-repo-command "sync" "-c" "--fail-fast" "-v" "-j"
|
||||||
|
(number->string (parallel-job-count)))
|
||||||
|
|
||||||
;; Delete vendor/**/.git, system/**/.git, toolchain/**/.git,
|
;; Delete vendor/**/.git, system/**/.git, toolchain/**/.git,
|
||||||
;; .repo/**/.git etc since they contain timestamps.
|
;; .repo/**/.git etc since they contain timestamps.
|
||||||
|
|
Reference in a new issue