From 1c53d7a2157384a814e67f38922c8c86f282036d Mon Sep 17 00:00:00 2001 From: bill-auger Date: Tue, 14 Jul 2020 09:00:18 -0400 Subject: add more volatile bulid support repos to chroot pacman.conf (commented-out) --- src/chroot-tools/librechroot | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index f7921bf..06147e2 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -440,9 +440,35 @@ main() { ## process CLI options ## if (( has_tmp_pacmanconf )); then + readonly REPOS_HEADER='###########################\n# Parabola standard repos #' + tmppacmanconf="$(mktemp --tmpdir librechroot-pacman.conf.XXXXXXXXXX)" + read -r -d '' VOLATILE_REPOS <<-'EOF' +##############################\ +# Special-case build-support #\ +##############################\ +\ +# Enable the volatile arm [arm-aur] repo only as needed\ +# [arm-aur]\ +# Server = https://mirror.archlinuxarm.org/$arch/$repo/\ +\ +# Enable the volatile i686 [build-support] repo only as needed\ +# [build-support]\ +# Server = http://mirror.archlinux32.org/$arch/$repo/\ +\ +# Enable the volatile i686 [staging] repo only as needed\ +# [staging]\ +# Server = http://mirror.archlinux32.org/$arch/$repo/\ +\ +# Enable the volatile x86_64 [staging] repo only as needed\ +# [staging]\ +# Server = http://mirror.archlinux.org/$arch/$repo/\ +EOF + + # generate custom pacman.conf sed -r \ -e "s|^#?\\s*Architecture.+|Architecture = ${target_arch}|g" \ -e "s|^.*Include\s*=\s*/etc/pacman.d/.*\.conf|#&|" \ + -e "N ; /${REPOS_HEADER}/ i ${VOLATILE_REPOS} \n\n" \ < "${def_pacmanconf}" \ > "${tmp_pacmanconf}" fi -- cgit v1.2.2