summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-09-06 10:57:33 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-08 00:33:46 +0100
commitee7c6d00bb19b762f40702aada93bac568777d24 (patch)
tree999fc0e7fda30dfd96c72bb8f49c7e6475d9e668 /bitbake/lib
parentd67e3b4c708b7c7d142b896cdb5fecc35e1ae9ad (diff)
downloadpoky-ee7c6d00bb19b762f40702aada93bac568777d24.tar.gz
bitbake: lib/bb/utils: edit_metadata() comment tweaks
No functional changes, just make a couple of minor tweaks to the comments for edit_metadata(): * There are four elements to be returned by the callback function * Add an example return statement for when you don't want to modify the value (Bitbake rev: 99675c19375c96140bc8ae8f9fc3a1945a77cebb) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index a855d58513..729848a1cc 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -1081,7 +1081,7 @@ def edit_metadata(meta_lines, variables, varfunc, match_overrides=False):
1081 newlines: list of lines up to this point. You can use 1081 newlines: list of lines up to this point. You can use
1082 this to prepend lines before this variable setting 1082 this to prepend lines before this variable setting
1083 if you wish. 1083 if you wish.
1084 and should return a three-element tuple: 1084 and should return a four-element tuple:
1085 newvalue: new value to substitute in, or None to drop 1085 newvalue: new value to substitute in, or None to drop
1086 the variable setting entirely. (If the removal 1086 the variable setting entirely. (If the removal
1087 results in two consecutive blank lines, one of the 1087 results in two consecutive blank lines, one of the
@@ -1095,6 +1095,8 @@ def edit_metadata(meta_lines, variables, varfunc, match_overrides=False):
1095 multi-line value to continue on the same line as 1095 multi-line value to continue on the same line as
1096 the assignment, False to indent before the first 1096 the assignment, False to indent before the first
1097 element. 1097 element.
1098 To clarify, if you wish not to change the value, then you
1099 would return like this: return origvalue, None, 0, True
1098 match_overrides: True to match items with _overrides on the end, 1100 match_overrides: True to match items with _overrides on the end,
1099 False otherwise 1101 False otherwise
1100 Returns a tuple: 1102 Returns a tuple: