]> code.ossystems Code Review - openembedded-core.git/commit
insane.bbclass: Add pkgvarcheck to check for suboptimal usages of variables
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 Feb 2013 16:54:00 +0000 (16:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2013 13:12:18 +0000 (13:12 +0000)
commit316228948e65f376f6c5be13ccd0c964ea630edf
tree07d03cfd8f5310cda5ecc2890b535571a7b983c2
parent7e880a95840db82f4035959b03630ba2a96c0311
insane.bbclass: Add pkgvarcheck to check for suboptimal usages of variables

Check through the variables:
'RDEPENDS', 'RRECOMMENDS', 'FILES', 'pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm'
and if there is a variable set which isn't package specific, inform the user
of this.

Using these variables without a package suffix is bad practise and complicates
dependencies of packages unnecessarily as well as complicates the code. Lets
convert the remaining issues and then we can take the small performance gain.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass