summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-07-14 09:00:18 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-11-20 22:53:31 -0500
commitd4828a7a79729086c805acfca7932817d6160ff5 (patch)
tree4ba52e303d33b4151f68954c0ea81a5edd648bd7
parent3c86b7cd19def6c0b9c41ab8868ff3c07bf742a3 (diff)
add more volatile bulid support repos to chroot pacman.conf (commented-out)
-rwxr-xr-xsrc/chroot-tools/librechroot26
1 files changed, 26 insertions, 0 deletions
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