public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Eli Schwartz" <eschwartz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/binhost:master commit in: builders/jiji/, builders/milou/
Date: Mon, 30 Dec 2024 23:35:37 +0000 (UTC)	[thread overview]
Message-ID: <1735491513.4f22add4b0ea7a17d4c35e8051b8b3fffcbf1ce1.eschwartz@gentoo> (raw)

commit:     4f22add4b0ea7a17d4c35e8051b8b3fffcbf1ce1
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 29 16:58:33 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Sun Dec 29 16:58:33 2024 +0000
URL:        https://gitweb.gentoo.org/proj/binhost.git/commit/?id=4f22add4

updater: arrayize lists of nspawn containers

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 builders/jiji/binhost-update  |  4 ++--
 builders/milou/binhost-update | 18 +++++++++---------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/builders/jiji/binhost-update b/builders/jiji/binhost-update
index ee5a395..be68a2e 100755
--- a/builders/jiji/binhost-update
+++ b/builders/jiji/binhost-update
@@ -9,7 +9,7 @@ LOCKFILE="/root/.tmp-binhost-${_BINHOST_NAME}-lock"
 EMAIL_FROM=binhost@susuwatari.arm.dev.gentoo.org
 EMAIL_TO=gentoo-binhost-autobuilds@lists.gentoo.org
 
-NSPAWN_NAMES="binhost-arm64-kde-23 binhost-arm64-gnome-23 binhost-arm64-server-23"
+NSPAWN_NAMES=(binhost-arm64-kde-23 binhost-arm64-gnome-23 binhost-arm64-server-23)
 
 UPLOAD_USER=arm64
 UPLOAD_KEY=/root/.ssh/id_ed25519
@@ -96,7 +96,7 @@ emerge --sync -q &>> ${TMPFILE}
 
 anyfail=0
 
-for n in ${NSPAWN_NAMES} ; do
+for n in "${NSPAWN_NAMES[@]}" ; do
 	echo Machine ${n} &>> ${TMPFILE}
 	echo &>> ${TMPFILE}
 	cd /var/lib/machines/${n}/etc/binhost &>> ${TMPFILE}

diff --git a/builders/milou/binhost-update b/builders/milou/binhost-update
index e6306fe..0451c1e 100755
--- a/builders/milou/binhost-update
+++ b/builders/milou/binhost-update
@@ -9,24 +9,24 @@ LOCKFILE="/root/.tmp-binhost-${_BINHOST_NAME}-lock"
 EMAIL_FROM=binhost@milou.amd64.dev.gentoo.org
 EMAIL_TO=gentoo-binhost-autobuilds@lists.gentoo.org
 
-NSPAWNS_x8664_23="
+NSPAWNS_x8664_23=(
 	binhost-amd64-x86-64-kde-23
 	binhost-amd64-x86-64-gnome-23
 	binhost-amd64-x86-64-openrc-23
 	binhost-amd64-x86-64-server-23
-"
+)
 
-NSPAWNS_x8664v3_23="
+NSPAWNS_x8664v3_23=(
 	binhost-amd64-x86-64-v3-kde-23
 	binhost-amd64-x86-64-v3-gnome-23
 	binhost-amd64-x86-64-v3-openrc-23
 	binhost-amd64-x86-64-v3-server-23
-"
+)
 
-NSPAWN_NAMES="
-	${NSPAWNS_x8664_23}
-	${NSPAWNS_x8664v3_23}
-"
+NSPAWN_NAMES=(
+	"${NSPAWNS_x8664_23[@]}"
+	"${NSPAWNS_x8664v3_23[@]}"
+)
 
 UPLOAD_USER=amd64
 UPLOAD_KEY=/root/.ssh/id_ed25519
@@ -117,7 +117,7 @@ exec {BASH_XTRACEFD}>> ${TMPFILE}
 set -x
 
 nspawn_command=(systemd-nspawn --bind /var/cache/distfiles --bind-ro /var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=${TMPFS_SIZE}g)
-for n in ${NSPAWN_NAMES} ; do
+for n in "${NSPAWN_NAMES[@]}" ; do
 	machinedir=/var/lib/machines/${n}
 	echo Machine ${n} &>> ${TMPFILE}
 	echo &>> ${TMPFILE}


             reply	other threads:[~2024-12-30 23:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-30 23:35 Eli Schwartz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-29 20:52 [gentoo-commits] proj/binhost:master commit in: builders/jiji/, builders/milou/ Sam James
2024-08-27 15:07 Eli Schwartz
2024-06-01 14:25 Andreas K. Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1735491513.4f22add4b0ea7a17d4c35e8051b8b3fffcbf1ce1.eschwartz@gentoo \
    --to=eschwartz@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox