diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-09-15 17:51:37 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-09-18 08:18:59 +0200 |
commit | 74cfb1b0d4aaba426d3edec51e5c30daf70aa25b (patch) | |
tree | b35c5b7e6c6b9711942ef2c1e3295b1a657d37da /eclass | |
parent | python-utils-r1.eclass: Block also pythonX.Y in wrappers (diff) | |
download | gentoo-74cfb1b0d4aaba426d3edec51e5c30daf70aa25b.tar.gz gentoo-74cfb1b0d4aaba426d3edec51e5c30daf70aa25b.tar.bz2 gentoo-74cfb1b0d4aaba426d3edec51e5c30daf70aa25b.zip |
git-r3.eclass: Print possible override vars for user convenience
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/git-r3.eclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 48fac96ee358..3c09b6682ef5 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -586,6 +586,8 @@ git-r3_fetch() { local -x GIT_DIR _git-r3_set_gitdir "${repos[0]}" + einfo "Repository id: ${GIT_DIR##*/}" + # prepend the local mirror if applicable if [[ ${EGIT_MIRROR_URI} ]]; then repos=( @@ -618,10 +620,11 @@ git-r3_fetch() { COMMIT_DATE:commit_date ) - local localvar livevar live_warn= + local localvar livevar live_warn= override_vars=() for localvar in "${varmap[@]}"; do livevar=EGIT_OVERRIDE_${localvar%:*}_${override_name} localvar=${localvar#*:} + override_vars+=( "${livevar}" ) if [[ -n ${!livevar} ]]; then [[ ${localvar} == repos ]] && repos=() @@ -633,6 +636,13 @@ git-r3_fetch() { if [[ ${live_warn} ]]; then ewarn "No support will be provided." + else + einfo "To override fetched repository properties, use:" + local x + for x in "${override_vars[@]}"; do + einfo " ${x}" + done + einfo fi fi |