Patchwork [bitbake-devel,04/14] Hob: Improve the matching for runnable machine type

login
register
mail settings
Submitter Dongxiao Xu
Date March 29, 2012, 12:01 p.m.
Message ID <6db924cb9886d60bb252277516c5649c66c99287.1333022081.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/24829/
State New
Headers show

Comments

Dongxiao Xu - March 29, 2012, 12:01 p.m.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/ui/crumbs/imagedetailspage.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/lib/bb/ui/crumbs/imagedetailspage.py b/lib/bb/ui/crumbs/imagedetailspage.py
index 276281d..46d55c8 100755
--- a/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/lib/bb/ui/crumbs/imagedetailspage.py
@@ -268,7 +268,8 @@  class ImageDetailsPage (HobPage):
                 break
 
         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