diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-25 15:28:52 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-12-02 09:16:17 +0100 |
commit | efd3696e70a6603f1a45faa4a172433514f0a487 (patch) | |
tree | b72751ba93b050391db05a8e1be7506836b6d515 /meta-oe/classes/gitver.bbclass | |
parent | 761639b9d7681c81dd69eaf3a37c32791d6e97fd (diff) | |
download | meta-openembedded-efd3696e70a6603f1a45faa4a172433514f0a487.tar.gz |
remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Diffstat (limited to 'meta-oe/classes/gitver.bbclass')
-rw-r--r-- | meta-oe/classes/gitver.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass index e7b5155ee0..71bf42fbcd 100644 --- a/meta-oe/classes/gitver.bbclass +++ b/meta-oe/classes/gitver.bbclass | |||
@@ -24,7 +24,7 @@ def get_git_pv(path, d, tagadjust=None): | |||
24 | import os | 24 | import os |
25 | import bb.process | 25 | import bb.process |
26 | 26 | ||
27 | gitdir = os.path.abspath(os.path.join(d.getVar("S", True), ".git")) | 27 | gitdir = os.path.abspath(os.path.join(d.getVar("S"), ".git")) |
28 | try: | 28 | try: |
29 | ver = gitrev_run("git describe --tags", gitdir) | 29 | ver = gitrev_run("git describe --tags", gitdir) |
30 | except Exception, exc: | 30 | except Exception, exc: |
@@ -71,5 +71,5 @@ def mark_recipe_dependencies(path, d): | |||
71 | mark_dependency(d, tagdir) | 71 | mark_dependency(d, tagdir) |
72 | 72 | ||
73 | python () { | 73 | python () { |
74 | mark_recipe_dependencies(d.getVar("S", True), d) | 74 | mark_recipe_dependencies(d.getVar("S"), d) |
75 | } | 75 | } |