summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-export-rootfs
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-17 20:17:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-23 10:00:32 -0700
commitc1b31f899675bafd4b69e567299f968a0a52cc2e (patch)
tree1e561c08b3b682124d3e9bcaf86eb9bd2683164a /scripts/runqemu-export-rootfs
parent108220137bc51b10f4053df64f3c84195906b7a8 (diff)
downloadpoky-c1b31f899675bafd4b69e567299f968a0a52cc2e.tar.gz
bb/ui/crumbs/tasklistmodel: more robust checking for substrings
Relying on the count() method of Str to determine whether the string contains a substring is error prone purely because the return value doesn't strictly convert to a Boolean value. To that end take the more pythonic approach of using the in operator (foo in bar) to check for the substring. Further, add a helper method for the common case of testing whether a pn is -native, -cross or virtual/ (Bitbake rev: d7768cefcddd59a5102d7e9b67e4416bf8603f55) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-export-rootfs')
0 files changed, 0 insertions, 0 deletions