[mkchroot] update url or ftp.manjaro.org

This commit is contained in:
Philip 2018-04-19 10:47:24 +02:00
parent 225ace7417
commit fdf797e2fb

View file

@ -92,7 +92,7 @@ fi
# Workaround when creating a chroot in a branch different of the host # Workaround when creating a chroot in a branch different of the host
if [[ -n $pac_conf ]] && [[ -n $mirrors_conf ]] && [[ -n ${build_mirror} ]]; then if [[ -n $pac_conf ]] && [[ -n $mirrors_conf ]] && [[ -n ${build_mirror} ]]; then
url=${build_mirror}'/$repo/$arch' url=${build_mirror}'/$repo/$arch'
[[ ${build_mirror} = *repo.manjaro* ]] && show_mirror=repo.manjaro.org'/$repo/$arch' || show_mirror=$url [[ ${build_mirror} = *ftp*repo.manjaro.org* ]] && show_mirror=repo.manjaro.org'/$repo/$arch' || show_mirror=$url
info "mirror: %s" "$show_mirror" info "mirror: %s" "$show_mirror"
pac_base="$working_dir/pacman-basestrap.conf" pac_base="$working_dir/pacman-basestrap.conf"
sed "s#Include = /etc/pacman.d/mirrorlist#Server = ${url}#g" $pac_conf > $pac_base sed "s#Include = /etc/pacman.d/mirrorlist#Server = ${url}#g" $pac_conf > $pac_base