From f73ea0e40d0ebe9eaea80ed7b4d36da299e39e62 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Thu, 29 Mar 2012 20:01:10 +0800 Subject: Hob: Improve the matching for runnable machine type (Bitbake rev: 1b14488bcfb345a3258b15ebfdaa2e1235a5fe87) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index f15aad30a5..b70440de5e 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py @@ -281,7 +281,8 @@ class ImageDetailsPage (HobPage): def test_mach_runnable(self, image_name): mach_runnable = False for t in self.builder.parameters.runnable_machine_patterns: - if t in image_name: + mach_string = image_name.strip(self.builder.hob_image + '-') + if mach_string.startswith(t): mach_runnable = True break return mach_runnable -- cgit v1.2.3-54-g00ecf