summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2019-01-13 11:18:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-12 22:01:10 +0000
commit2fcbc079e2792030606117e21f4e70e111d4fd1a (patch)
treefc38ed189d859673bcd68c7bead3cce5651fd1e4 /bitbake/lib/bb/fetch2
parentf2c0bba7e7ad2bab0a1c38722eb44a40cf2d2aa3 (diff)
downloadpoky-2fcbc079e2792030606117e21f4e70e111d4fd1a.tar.gz
bitbake: bitbake: remove True option to getVar calls
getVar() has been defaulting to expanding by default for a long time (2016), thus remove the True option from getVar() calls with a regex search and replace. Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) (Bitbake rev: 3bba0dbd524cf72176a765957adff544ae5c255a) Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index c3c089233b..1a8ebe3da8 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -199,7 +199,7 @@ class Git(FetchMethod):
199 depth_default = 1 199 depth_default = 1
200 ud.shallow_depths = collections.defaultdict(lambda: depth_default) 200 ud.shallow_depths = collections.defaultdict(lambda: depth_default)
201 201
202 revs_default = d.getVar("BB_GIT_SHALLOW_REVS", True) 202 revs_default = d.getVar("BB_GIT_SHALLOW_REVS")
203 ud.shallow_revs = [] 203 ud.shallow_revs = []
204 ud.branches = {} 204 ud.branches = {}
205 for pos, name in enumerate(ud.names): 205 for pos, name in enumerate(ud.names):