summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-12-02 13:37:13 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-12-02 13:37:13 +0100
commite06a4a724356de37ecfd4b7869adb02ef5d39e00 (patch)
treeacf38d8ada99820bd4fdf39513b9a6be7fb4f7c9
parentd6792db31cca80acde27af0448901622052f540c (diff)
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
-rwxr-xr-xarchbuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/archbuild b/archbuild
index 925d072..fc2ec34 100755
--- a/archbuild
+++ b/archbuild
@@ -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}