insane.bbclass: Switch to endswith() and fix la/pc check
commit973169bb71ab44fa234ea65b409a2d45cf018112
authorTom Rini <tom_rini@mentor.com>
Thu, 1 Apr 2010 15:10:58 +0000 (1 15:10 +0000)
committerTom Rini <tom_rini@mentor.com>
Fri, 2 Apr 2010 15:03:08 +0000 (2 08:03 -0700)
tree886c3be3e0784c6758101fe1fb8a86131bdd2922
parented61ecec2ab33c37fcd18040add05b507dd3f648
insane.bbclass: Switch to endswith() and fix la/pc check

This changes insane.bbclass to use s.endswith("str") rather than s[-3:] ==
"str".  The primary motivation for this is that we have tests that check for
'la' and 'pc' files when we really want '.la' and '.pc' to be what we check
for.  Also, our -dev symlink test does if test1:  if test2 and test3: action,
when it could just be if test1 and test2 and test3.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
classes/insane.bbclass