1 |
commit: d763378ad6a9d77919fd44f52879762beefbb54a |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 25 11:42:43 2015 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 25 11:42:43 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=d763378a |
7 |
|
8 |
[eclass] Fix examples. Rename vars. Pluralize. |
9 |
|
10 |
eclass/github.eclass | 12 ++++++------ |
11 |
1 file changed, 6 insertions(+), 6 deletions(-) |
12 |
|
13 |
diff --git a/eclass/github.eclass b/eclass/github.eclass |
14 |
index e14ac70..4b4ac68 100644 |
15 |
--- a/eclass/github.eclass |
16 |
+++ b/eclass/github.eclass |
17 |
@@ -42,16 +42,16 @@ esac |
18 |
# Patches to be fetched and applied from Github by commit id. |
19 |
# Example: |
20 |
# @CODE |
21 |
-# GH_PATCHES=( "b02c39fb8dec9043b0ac9d23d5caec19b8b0c337" ) |
22 |
+# GH_PATCHES=("b02c39fb8dec9043b0ac9d23d5caec19b8b0c337" "b0c337b02c39fb8dec9043b0ac9d23d5caec19b8" ) |
23 |
# @CODE |
24 |
|
25 |
-# @ECLASS-VARIABLE: GH_PULLREQ |
26 |
+# @ECLASS-VARIABLE: GH_PULLREQS |
27 |
# @DEFAULT_UNSET |
28 |
# @DESCRIPTION: |
29 |
# Pull requests to be fetched and applied from Github by its id. |
30 |
# Example: |
31 |
# @CODE |
32 |
-# GH_PULLREQ=( 17 19 ) |
33 |
+# GH_PULLREQS=(17 19) |
34 |
# @CODE |
35 |
|
36 |
|
37 |
@@ -95,9 +95,9 @@ _calculate_patches_uri() { |
38 |
done |
39 |
fi |
40 |
if [[ -n $GH_PULLREQ ]]; then |
41 |
- for gh_commit in "${GH_PULLREQ[@]}"; do |
42 |
- SRC_URI+=" https://github.com/${GH_USER}/${GH_REPO}/pull//${gh_commit}.patch -> ${PN}-pr-${gh_commit}.patch" |
43 |
- _GH_PATCHES+=("${DISTDIR}"/${PN}-pr-${gh_commit}.patch) |
44 |
+ for gh_pullreqid in "${GH_PULLREQS[@]}"; do |
45 |
+ SRC_URI+=" https://github.com/${GH_USER}/${GH_REPO}/pull//${gh_pullreq}.patch -> ${PN}-pr-${gh_pullreq}.patch" |
46 |
+ _GH_PATCHES+=("${DISTDIR}"/${PN}-pr-${gh_pullreqid}.patch) |
47 |
done |
48 |
fi |
49 |
} |