diff options
| author | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-14 21:13:04 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 10:23:23 +0000 |
| commit | c4e2c59088765d1f1de7ec57cde91980f887c2ff (patch) | |
| tree | a2fda8ac5916fb59a711e9220c2177008cca9347 /meta/classes/oelint.bbclass | |
| parent | d5e67725ac11e3296cad104470931ffa16824b90 (diff) | |
| download | poky-c4e2c59088765d1f1de7ec57cde91980f887c2ff.tar.gz | |
meta: 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 OE-Core rev: 7c552996597faaee2fbee185b250c0ee30ea3b5f)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/oelint.bbclass')
| -rw-r--r-- | meta/classes/oelint.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/oelint.bbclass b/meta/classes/oelint.bbclass index c4febc2cfa..2589d34059 100644 --- a/meta/classes/oelint.bbclass +++ b/meta/classes/oelint.bbclass | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | addtask lint before do_build | 1 | addtask lint before do_build |
| 2 | do_lint[nostamp] = "1" | 2 | do_lint[nostamp] = "1" |
| 3 | python do_lint() { | 3 | python do_lint() { |
| 4 | pkgname = d.getVar("PN", True) | 4 | pkgname = d.getVar("PN") |
| 5 | 5 | ||
| 6 | ############################## | 6 | ############################## |
| 7 | # Test that DESCRIPTION exists | 7 | # Test that DESCRIPTION exists |
| @@ -35,7 +35,7 @@ python do_lint() { | |||
| 35 | # Check that all patches have Signed-off-by and Upstream-Status | 35 | # Check that all patches have Signed-off-by and Upstream-Status |
| 36 | # | 36 | # |
| 37 | srcuri = d.getVar("SRC_URI", False).split() | 37 | srcuri = d.getVar("SRC_URI", False).split() |
| 38 | fpaths = (d.getVar('FILESPATH', True) or '').split(':') | 38 | fpaths = (d.getVar('FILESPATH') or '').split(':') |
| 39 | 39 | ||
| 40 | def findPatch(patchname): | 40 | def findPatch(patchname): |
| 41 | for dir in fpaths: | 41 | for dir in fpaths: |
