From d82a0f1fcbf04642b53fb61ef6b80d610ef0ecf3 Mon Sep 17 00:00:00 2001 From: Lucía Andrea Illanes Albornoz Date: Mar 26 2023 11:28:13 +0000 Subject: subr.ex/ex_pkg_env.subr: add header. subr.rtl/rtl_fetch_git.subr: cleanup. --- diff --git a/subr.ex/ex_pkg_env.subr b/subr.ex/ex_pkg_env.subr index a34a284..bf5425d 100644 --- a/subr.ex/ex_pkg_env.subr +++ b/subr.ex/ex_pkg_env.subr @@ -2,6 +2,9 @@ # Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lucía Andrea Illanes Albornoz # set +o errexit -o noglob -o nounset is assumed. # +# Package variable and environment variable preparation +# Package build (step) state setting and testing +# # # exp_pkg_env_defaults() - set package variable defaults for single named package diff --git a/subr.rtl/rtl_fetch_git.subr b/subr.rtl/rtl_fetch_git.subr index f4ac293..db8a861 100644 --- a/subr.rtl/rtl_fetch_git.subr +++ b/subr.rtl/rtl_fetch_git.subr @@ -34,7 +34,7 @@ rtlp_fetch_url_git() { exit "${?}";) || return 1; (rtl_fileop cd "${_rpfug_dlcachedir_full}" &&\ git submodule update) || return 1; - else + else if git clone \ ${_rpfug_git_args} \ -b "${_rpfug_git_branch:-main}" \ @@ -44,7 +44,7 @@ rtlp_fetch_url_git() { _rpfug_clonefl=1; elif [ "${_rpfug_mirrors}" = "skip" ]; then return 1; - else + else for _rpfug_url_base in ${_rpfug_mirrors}; do if git clone \ ${_rpfug_git_args} \ @@ -125,7 +125,7 @@ rtl_fetch_mirror_urls_git() { (rtl_fileop cd "${_rfmug_target_dname}/${_rfmug_repo_dname}" &&\ git fetch ${_rfmug_git_args} --all) ||\ return 1; - else + else (rtl_fileop cd "${_rfmug_target_dname}" &&\ git clone ${_rfmug_git_args} --mirror "${_rfmug_url}" "${_rfmug_repo_dname}") ||\ return 1;