commit:     8513b9d9116f022beee4db57a2bae394b236e47b
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 25 11:18:05 2015 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Jun 25 11:18:05 2015 +0000
URL:        https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=8513b9d9

[eclass] Fix patch logic.

 eclass/github.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/github.eclass b/eclass/github.eclass
index 7b83a99..1099bf0 100644
--- a/eclass/github.eclass
+++ b/eclass/github.eclass
@@ -75,13 +75,13 @@ HOMEPAGE="https://github.com/${GH_USER}/${GH_REPO}";
 
 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 )
+                       _GH_PATCHES+=("${DISTDIR}"/${PN}-${gh_commit}.patch)
                done
        fi
 }

Reply via email to