Commit e06a4a72 authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

archbuild: update the root install instead of the working copy

This avoids updating the chroot on every call. See https://bugs.archlinux.org/task/21930
parent d6792db3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -38,7 +38,11 @@ if ${clean_first} || [ ! -d "${chroots}/${repo}-${arch}" ]; then
		-M /usr/share/devtools/makepkg-${arch}.conf \
		${chroots}/${repo}-${arch}/root \
		${base_packages}
else
	setarch ${arch} sudo mkarchroot \
		-u \
		${chroots}/${repo}-${arch}/root
fi

echo "Building in chroot for [${repo}] (${arch})..."
setarch ${arch} sudo makechrootpkg -c -u -r ${chroots}/${repo}-${arch}
setarch ${arch} sudo makechrootpkg -c -r ${chroots}/${repo}-${arch}