commit: 202de9fb1cc8e89aa8f98c6752c405f3d398d67e Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> AuthorDate: Thu Jun 25 11:11:32 2015 +0000 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> CommitDate: Thu Jun 25 11:11:32 2015 +0000 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=202de9fb
[eclass] Use tabs. eclass/github.eclass | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/eclass/github.eclass b/eclass/github.eclass index f2ff0c0..7b83a99 100644 --- a/eclass/github.eclass +++ b/eclass/github.eclass @@ -78,12 +78,12 @@ EXPORT_FUNCTIONS src_prepare src_unpack # If patches are fetched, calculate their location _calculate_patches_uri() { if [[ -n $GH_PATCHES ]]; then - _GH_PATCHES= - for gh_commit in "${GH_PATCHES[@]}"; do - SRC_URI+=" https://github.com/${GH_USER}/${GH_REPO}/commit/${gh_commit}.patch -> ${PN}-${gh_commit}.patch" - _GH_PATCHES+=( "${DISTDIR}"/${PN}-${gh_commit}.patch ) - done - fi + GH_PATCHES= + for gh_commit in "${GH_PATCHES[@]}"; do + SRC_URI+=" https://github.com/${GH_USER}/${GH_REPO}/commit/${gh_commit}.patch -> ${PN}-${gh_commit}.patch" + _GH_PATCHES+=( "${DISTDIR}"/${PN}-${gh_commit}.patch ) + done + fi } @@ -134,9 +134,11 @@ github_src_unpack() { # @DESCRIPTION: # Function for applying patches to Github packages. github_src_prepare() { - [[ $_GH_PATCHES ]] && epatch "${_GH_PATCHES[@]}" - epatch_user - default + debug-print-function ${FUNCNAME} "$@" + + [[ $_GH_PATCHES ]] && epatch "${_GH_PATCHES[@]}" + epatch_user + default } fi