~comcloudway/builds.sr.ht

84c5482ded2fa9f6eda41149f550c4522590c6a4 — Haowen Liu 2 years ago a8c6bfb
ubuntu: fix multiple repositories
1 files changed, 2 insertions(+), 2 deletions(-)

M images/ubuntu/functions
M images/ubuntu/functions => images/ubuntu/functions +2 -2
@@ 55,9 55,9 @@ add_repository() {
			--output /etc/apt/trusted.gpg.d/$key.gpg \
			--export $key
	fi
	printf 'deb %s %s %s' "$repo" "$distro" "$cmpnt" \
	printf 'deb %s %s %s\n' "$repo" "$distro" "$cmpnt" \
		| guest_ssh -p $port build@localhost sudo tee -a /etc/apt/sources.list
	printf 'deb-src %s %s %s' "$repo" "$distro" "$cmpnt" \
	printf 'deb-src %s %s %s\n' "$repo" "$distro" "$cmpnt" \
		| guest_ssh -p $port build@localhost sudo tee -a /etc/apt/sources.list
	guest_ssh -p "$port" build@localhost sudo apt-get update
}