diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-01-31 13:50:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-31 15:28:35 +0000 |
commit | ca4932b60f464430266cc43e34122b2973e8a200 (patch) | |
tree | 797fbc1730392690fdaf7972975a2818fa32b1a3 /scripts/rpm2cpio.sh | |
parent | 32ae3e686db067a2a63932782970db79eb1703e8 (diff) | |
download | openembedded-core-ca4932b60f464430266cc43e34122b2973e8a200.tar.gz openembedded-core-ca4932b60f464430266cc43e34122b2973e8a200.tar.bz2 openembedded-core-ca4932b60f464430266cc43e34122b2973e8a200.zip |
verify-bashisms: check scripts only once, include original file and line
Several scripts that are defined in .bbclass files end up in multiple
different recipes. It's better (faster, less repetitive error reports)
to check them only once.
In addition, the real information for the developer is where he can
find the script, not which recipe file uses it. verify-bashisms now
prints the original file instead of the recipe whenever possible
(i.e. 'filename' is set) and also bumps the line number so that it is
relative to the file and not the script.
Example with one real error and one added just for testing:
$ verify-bashisms core-image-minimal core-image-sato
Loading cache: 100% |#################################################################################| Time: 0:00:00
Loaded 2935 entries from dependency cache.
Parsing recipes: 100% |###############################################################################| Time: 0:00:01
Parsing of 2137 .bb files complete (2101 cached, 36 parsed). 2935 targets, 412 skipped, 0 masked, 0 errors.
Generating scripts...
Scanning scripts...
/.../openembedded-core/meta/classes/populate_sdk_ext.bbclass
possible bashism in install_tools line 515 (should be 'b = a'):
if [ "${SDK_INCLUDE_TOOLCHAIN}" == "1" -a ! -e $unfsd_path ] ; then
possible bashism in install_tools line 521 (type):
type fixme
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/rpm2cpio.sh')
0 files changed, 0 insertions, 0 deletions