From e06a4a724356de37ecfd4b7869adb02ef5d39e00 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 2 Dec 2010 13:37:13 +0100 Subject: 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 --- archbuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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} -- cgit v1.2.3-24-g4f1b