From 4c72ee98c2b3dcc642f7904f4ffeab5100305e8f Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Mon, 9 Apr 2012 16:41:59 +0800 Subject: Hob: Fix the pattern patch for image name Sometimes, users may open an image that is not built by Hob, therefore its image name is not started with "hob-image-". This commit sets a looser rule for runnable image matching. This fixes [YOCTO #2240] (Bitbake rev: 7b81389566cb27451557ca11ec8ed40ef2630543) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index b685d11e69..277f9d4b4d 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py @@ -272,8 +272,7 @@ class ImageDetailsPage (HobPage): def test_mach_runnable(self, image_name): mach_runnable = False for t in self.builder.parameters.runnable_machine_patterns: - mach_string = image_name.strip(self.builder.hob_image + '-') - if mach_string.startswith(t): + if t in image_name: mach_runnable = True break return mach_runnable -- cgit v1.2.3-54-g00ecf