diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-08-17 20:17:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-23 10:00:32 -0700 |
commit | c1b31f899675bafd4b69e567299f968a0a52cc2e (patch) | |
tree | 1e561c08b3b682124d3e9bcaf86eb9bd2683164a /scripts/runqemu-export-rootfs | |
parent | 108220137bc51b10f4053df64f3c84195906b7a8 (diff) | |
download | poky-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