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 | 7bc5622f4cf67a3ec7650c226878e1ccec7920b0 (patch) | |
tree | 03618b4ea339fe699776511e8d42e7dc47354eb2 | |
parent | bcd179c9cf3c30ec19f8b4c5d0116a2b18ae381f (diff) | |
download | meta-python2-7bc5622f4cf67a3ec7650c226878e1ccec7920b0.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\)
(From meta-openembedded commit: efd3696e70a6603f1a45faa4a172433514f0a487)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Tim Orling <ticotimo@gmail.com>
-rw-r--r-- | classes/pypi.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/pypi.bbclass b/classes/pypi.bbclass index cd27cd2..3d81ab3 100644 --- a/classes/pypi.bbclass +++ b/classes/pypi.bbclass @@ -1,5 +1,5 @@ def pypi_package(d): - bpn = d.getVar('BPN', True) + bpn = d.getVar('BPN') if bpn.startswith('python-'): return bpn[7:] elif bpn.startswith('python3-'): @@ -10,9 +10,9 @@ PYPI_PACKAGE ?= "${@pypi_package(d)}" PYPI_PACKAGE_EXT ?= "tar.gz" def pypi_src_uri(d): - package = d.getVar('PYPI_PACKAGE', True) - package_ext = d.getVar('PYPI_PACKAGE_EXT', True) - pv = d.getVar('PV', True) + package = d.getVar('PYPI_PACKAGE') + package_ext = d.getVar('PYPI_PACKAGE_EXT') + pv = d.getVar('PV') return 'https://files.pythonhosted.org/packages/source/%s/%s/%s-%s.%s' % (package[0], package, package, pv, package_ext) PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" |