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:
Pierre Schmitz 2010-12-02 13:37:13 +01:00
parent d6792db31c
commit e06a4a7243
1 changed files with 5 additions and 1 deletions

View File

@ -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}