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:59 +0000 (13:12 +0000)
commit21f2dd0cd1f58ef849bba64d3bdd0689c909101c
tree791633e9763ab55e4a8caaffb248764261e6a332
parentbfd577a5c2ca8693785c72d7c4adf1413147a771
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.

(From OE-Core rev: 316228948e65f376f6c5be13ccd0c964ea630edf)

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