aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2021-01-06 21:40:38 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2021-01-06 21:40:38 -0800
commit20cb11a4c7300c359b7a4fb2605176b9cdecaec4 (patch)
treeadd0860827da51942af0455a1c1106d7d73706cf
parentbin: make updates more reliable and faster (diff)
downloadsoko-20cb11a4c7300c359b7a4fb2605176b9cdecaec4.tar.gz
soko-20cb11a4c7300c359b7a4fb2605176b9cdecaec4.tar.bz2
soko-20cb11a4c7300c359b7a4fb2605176b9cdecaec4.zip
bin: make egencache jobs configurable
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xbin/fullupdate.sh5
-rwxr-xr-xbin/update.sh5
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/fullupdate.sh b/bin/fullupdate.sh
index 55f1025..400345a 100755
--- a/bin/fullupdate.sh
+++ b/bin/fullupdate.sh
@@ -3,6 +3,7 @@
: "${GIT_URI:=https://anongit.gentoo.org/git/repo/gentoo.git}"
: "${GIT_BRANCH:=master}"
: "${GIT_REMOTE:=origin}"
+: "${JOBS:=6}"
update_repository(){
# This is the copy of the tree used to run gpackages against.
@@ -30,10 +31,10 @@ update_md5cache(){
#echo 'FEATURES="-userpriv -usersandbox -sandbox"' >> /etc/portage/make.conf
- egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
+ egencache -j "${JOBS}" --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
location = /mnt/packages-tree/gentoo' --update
- egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
+ egencache -j "${JOBS}" --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
location = /mnt/packages-tree/gentoo' --update-use-local-desc
}
diff --git a/bin/update.sh b/bin/update.sh
index b6bae12..06d6110 100755
--- a/bin/update.sh
+++ b/bin/update.sh
@@ -3,6 +3,7 @@
: "${GIT_URI:=https://anongit.gentoo.org/git/repo/gentoo.git}"
: "${GIT_BRANCH:=master}"
: "${GIT_REMOTE:=origin}"
+: "${JOBS:=6}"
update_repository(){
# This is the copy of the tree used to run gpackages against.
@@ -30,10 +31,10 @@ update_md5cache(){
#echo 'FEATURES="-userpriv -usersandbox -sandbox"' >> /etc/portage/make.conf
- egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
+ egencache -j "${JOBS}" --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
location = /mnt/packages-tree/gentoo' --update
- egencache -j 6 --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
+ egencache -j "${JOBS}" --cache-dir /var/cache/pgo-egencache --repo gentoo --repositories-configuration '[gentoo]
location = /mnt/packages-tree/gentoo' --update-use-local-desc
}