guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: android-repo-download: Use parallel-job-count instead of hard-cod


From: guix-commits
Subject: 02/02: android-repo-download: Use parallel-job-count instead of hard-coding job count.
Date: Wed, 2 Sep 2020 18:09:52 -0400 (EDT)

dannym pushed a commit to branch master
in repository guix.

commit 4ff0fed778172f80d938dfe42716cc9fefeb4fdc
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Thu Sep 3 00:06:00 2020 +0200

    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 cba5027..db8c4d1 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]