aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2020-09-03 00:06:00 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2020-09-03 00:09:38 +0200
commit4ff0fed778172f80d938dfe42716cc9fefeb4fdc (patch)
tree6e11803ad82418aa2c9573ff14b30434af92c935
parenteb924a97bd04e8e1d09664fbb08cd6712025376d (diff)
downloadguix-4ff0fed778172f80d938dfe42716cc9fefeb4fdc.tar
guix-4ff0fed778172f80d938dfe42716cc9fefeb4fdc.tar.gz
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.
-rw-r--r--guix/build/android-repo.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/android-repo.scm b/guix/build/android-repo.scm
index cba50270ea..db8c4d127b 100644
--- a/guix/build/android-repo.scm
+++ b/guix/build/android-repo.scm
@@ -56,7 +56,8 @@ or a branch. Return #t on success, #f otherwise."
(with-directory-excursion directory
(invoke git-repo-command "init" "-u" manifest-url "-b" manifest-revision
"--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,
;; .repo/**/.git etc since they contain timestamps.