From 4ff0fed778172f80d938dfe42716cc9fefeb4fdc Mon Sep 17 00:00:00 2001
From: Danny Milosavljevic <dannym@scratchpost.org>
Date: Thu, 3 Sep 2020 00:06:00 +0200
Subject: [PATCH] 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.
---
 guix/build/android-repo.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/build/android-repo.scm b/guix/build/android-repo.scm
index cba50270ea3..db8c4d127ba 100644
--- a/guix/build/android-repo.scm
+++ b/guix/build/android-repo.scm
@@ -56,7 +56,8 @@ (define* (android-repo-fetch manifest-url manifest-revision directory
     (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.
-- 
GitLab