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
This commit is contained in:
parent
d6792db31c
commit
e06a4a7243
|
@ -38,7 +38,11 @@ if ${clean_first} || [ ! -d "${chroots}/${repo}-${arch}" ]; then
|
||||||
-M /usr/share/devtools/makepkg-${arch}.conf \
|
-M /usr/share/devtools/makepkg-${arch}.conf \
|
||||||
${chroots}/${repo}-${arch}/root \
|
${chroots}/${repo}-${arch}/root \
|
||||||
${base_packages}
|
${base_packages}
|
||||||
|
else
|
||||||
|
setarch ${arch} sudo mkarchroot \
|
||||||
|
-u \
|
||||||
|
${chroots}/${repo}-${arch}/root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building in chroot for [${repo}] (${arch})..."
|
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}
|
||||||
|
|
Loading…
Reference in New Issue