diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-03-14 18:28:02 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-03-14 18:28:02 +0000 |
commit | 23caa132da4f2fc81c38988c1349a1fb4810ded1 (patch) | |
tree | 77cefd7a1f098f6c2e5dc5e18f13dd45ad6fac8e /pkgtool.sh | |
parent | acddc9f10db91bb44d12954859591ba961c7a953 (diff) | |
download | midipix_build-23caa132da4f2fc81c38988c1349a1fb4810ded1.tar.bz2 midipix_build-23caa132da4f2fc81c38988c1349a1fb4810ded1.tar.xz |
pkgtool.sh:pkgtoolp_mirror_fetch(): skip mirroring of Git URL(s) if ${PKG_MIRRORS_GIT} specifies `skip'.
subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): skip attempting to use Git URL(s) mirror if ${_mirrors} specifies `skip'.
groups/120.native_runtime.group:{ntctty,psxscl{,_strace}}:${PKG_MIRRORS_GIT}: skip mirroring.
Diffstat (limited to 'pkgtool.sh')
-rwxr-xr-x | pkgtool.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -97,7 +97,9 @@ pkgtoolp_mirror_fetch() { fi; fi; elif _pkg_url="$(rtl_get_var_unsafe -u "PKG_${_pkg_name_real}_URLS_GIT")"; then - if [ "${_pkg_name}" != "${_pkg_name_real}" ]; then + if [ "$(rtl_get_var_unsafe -u "PKG_${_pkg_name_real}_MIRRORS_GIT")" = "skip" ]; then + _rc=0; rtl_log_msg warning "Package \`%s' specifies to skip Git URL(s) mirroring, skipping." "${_pkg_name}"; + elif [ "${_pkg_name}" != "${_pkg_name_real}" ]; then rtl_log_msg info "Mirroring package \`%s' (parent package: \`%s'), Git URL(s): \`%s'..." "${_pkg_name}" "${_pkg_name_real}" "${_pkg_url}"; if ! rtl_fileop ln_symbolic "${_pkg_name_real}" "${_mirror_dname_git}/${_pkg_name}"; then _rc=1; rtl_log_msg warning "Failed to create symbolic link \`%s' for package \`%s' w/ parent package \`%s'."\ |