android-repo-download: Use parallel-job-count instead of hard-coding job
authorDanny Milosavljevic <dannym@scratchpost.org>
Wed, 2 Sep 2020 22:06:00 +0000 (00:06 +0200)
committerDanny Milosavljevic <dannym@scratchpost.org>
Wed, 2 Sep 2020 22:09:38 +0000 (00:09 +0200)
count.

* guix/build/android-repo.scm (android-repo-fetch): Use parallel-job-count
instead of hard-coding job count.

guix/build/android-repo.scm

index cba5027..db8c4d1 100644 (file)
@@ -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.