diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-11-06 10:32:55 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-11-06 10:32:55 +0100 |
commit | 671643053d1751c7264bb5282a9ce170855b4c35 (patch) | |
tree | 6feb1efa2a5834ce383dec218bd1bfc305455629 /archbuild.in | |
parent | bf96c9f949aea3ef66769a2aae78d5cf4c777458 (diff) |
archbuild: Always use recent makepkg.conf and pacman.conf; Run namcap by default
Diffstat (limited to 'archbuild.in')
-rw-r--r-- | archbuild.in | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/archbuild.in b/archbuild.in index e3e5f13..502654c 100644 --- a/archbuild.in +++ b/archbuild.in @@ -53,25 +53,34 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then done exec 9>&- + # FIXME: temporary workaround until pacman 4.0 moves to [core] + if pacman -V | grep -q 'v4.' && ( [[ "$repo" == 'extra' || "$repo" == 'multilib' ]] ); then + pacman_conf=$(mktemp) + cp "@pkgdatadir@/pacman-${repo}.conf" "${pacman_conf}" + sed -r 's/^#(SigLevel = Never)/\1/' -i "${pacman_conf}" + else + pacman_conf="@pkgdatadir@/pacman-${repo}.conf" + fi + rm -rf "${chroots}/${repo}-${arch}" mkdir -p "${chroots}/${repo}-${arch}" setarch "${arch}" mkarchroot \ - -C "@pkgdatadir@/pacman-${repo}.conf" \ + -C "${pacman_conf}" \ -M "@pkgdatadir@/makepkg-${arch}.conf" \ "${chroots}/${repo}-${arch}/root" \ "${base_packages[@]}" # FIXME: temporary workaround until pacman 4.0 moves to [core] - case $repo in - core|extra|community|multilib) - sed -r '/^SigLevel.*/d' -i "${chroots}/${repo}-${arch}/root/etc/pacman.conf" - ;; - esac + if pacman -V | grep -q 'v4.' && ( [[ "$repo" == 'extra' || "$repo" == 'multilib' ]] ); then + cp "@pkgdatadir@/pacman-${repo}.conf" "${chroots}/${repo}-${arch}/root/etc/pacman.conf" + fi else setarch ${arch} mkarchroot \ -u \ + -C "@pkgdatadir@/pacman-${repo}.conf" \ + -M "@pkgdatadir@/makepkg-${arch}.conf" \ "${chroots}/${repo}-${arch}/root" fi msg "Building in chroot for [${repo}] (${arch})..." -setarch "${arch}" makechrootpkg -c -r "${chroots}/${repo}-${arch}" +setarch "${arch}" makechrootpkg -c -n -r "${chroots}/${repo}-${arch}" |